Ejemplo n.º 1
0
 public WeberPageHomeController(WeberPageContext wpc)
 {
     _weberpagecontext = wpc;
     startOfWeek       = DateTime.Today;
     delta             = DayOfWeek.Monday - startOfWeek.DayOfWeek;
     startOfWeek       = startOfWeek.AddDays(delta);
     endOfWeek         = startOfWeek.AddDays(7);
 }
Ejemplo n.º 2
0
 //Need to create a new database context in the constructor of the page
 public AccountsController(WeberPageContext context)
 {
     _context = context;
 }
Ejemplo n.º 3
0
 //having data passed in that will be assigned to datacontext
 public CreateAccountController(WeberPageContext wpc)
 {
     //datacontext assigned
     _weberpagecontext = wpc;
 }
Ejemplo n.º 4
0
 public ShiftsController(WeberPageContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public LoginController(WeberPageContext wpc)
 {
     _weberpagecontext = wpc;
 }