public Day ToDay() { Day d = new Day(); d.Date = DateTime.Parse(this.Date); d.Budget = this.Budget; return d; }
public DayDTO(int position, Day d) { this.Id = d.DayID; this.Position = position; this.Date = d.Date.ToString("yyyy-MM-dd"); this.Budget = d.Budget; }
public void CopyToDay(Day d) { d.Date = DateTime.Parse(this.Date); d.Budget = this.Budget; }
public DayDTO(Day d) { this.Id = d.DayID; this.Date = d.Date.ToString("yyyy-MM-dd"); this.Budget = d.Budget; }