Esempio n. 1
0
 public IActionResult Create(AllDays allDays)
 {
     if (ModelState.IsValid)
     {
         _dayService.Add(allDays);
         _dayService.SaveChangesAsync();
         return(RedirectToAction("Index"));
     }
     return(View(allDays));
 }