public ActionResult Index() { if (bookOperations.GetBooks().Any(m => m.EndBookingDate < DateTime.Now)) { var userId = User.Identity.GetUserId(); userOperations.ResetBookingBooks(userId); db.SaveChanges(); } return(View()); }
public ActionResult Index() { if (bookOperations.GetBooks().Any(m => m.ReturnDate < DateTime.Now)) { userOperations.SetObligation(); db.SaveChanges(); } return(View()); }