Ejemplo n.º 1
0
 public DayManager(DataContext db, Day day, Week week, DateTime date)
 {
     this.db = db;
     this.week = week;
     this.day = day;
     this.date = date;
 }
Ejemplo n.º 2
0
 public Week Fill(Week week)
 {
     for (int i = 0; i < 5; i++)
     {
         week.Days.Add(new Day()
         {
             Date = week.Monday.AddDays(i),
             IsMorning = true,
         });
         week.Days.Add(new Day()
         {
             Date = week.Monday.AddDays(i),
             IsMorning = false,
         });
     }
     return week;
 }