Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1.         public ActionResult About()
  2.         {
  3.             ViewBag.Message = "Your application description page.";
  4.             CalendarContext db = new CalendarContext();
  5.             DateTime VisibleStart = new DateTime(2017, 01, 22, 06, 00, 00);
  6.             DateTime VisibleEnd = new DateTime(2017, 01, 22, 23, 00, 00);
  7.             var Workers = (from x in db.WorkSchedulers
  8.                            where !((x.PlanEnd <= VisibleStart) || (x.PlanStart >= VisibleEnd))
  9.                            select x).ToList();
  10.             ViewBag.Persons = Workers;
  11.             return View();
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement