My application is huge and after one year we've found that customers "like" inserting whitespaces in their names or surnames... Is there any simple way to remove whitespaces from those strings (and not searching for every line in program) or I have to search my whole code and change every line which sets Osoba
? Wanted to do set { Osoba = value.Trim(): }
but I also had to assign get
which I can't do in model's property.
public class Event
{
[Key]
public int EventID { get; set; }
public DateTime AddTime { get; set; }
public DateTime Start { get; set; }
public DateTime End { get; set; }
public EventCreateType EventCreateType { get; set; }
public EventStatus Status { get; set; }
public string Osoba { get; set; }
(...)
}