Пример #1
0
        public ActionResult Index()
        {
            if (bookOperations.GetBooks().Any(m => m.EndBookingDate < DateTime.Now))
            {
                var userId = User.Identity.GetUserId();
                userOperations.ResetBookingBooks(userId);
                db.SaveChanges();
            }

            return(View());
        }
Пример #2
0
 public ActionResult Index()
 {
     if (bookOperations.GetBooks().Any(m => m.ReturnDate < DateTime.Now))
     {
         userOperations.SetObligation();
         db.SaveChanges();
     }
     return(View());
 }