Beispiel #1
0
 public ActionResult Edit(Basketball.Domain.Entities.DayOfWeek @dayOfWeek)
 {
     if (ModelState.IsValid)
     {
         dayOfWeekService.Update(@dayOfWeek);
         dayOfWeekService.Commit();
         SuccessMessage(FormMessages.SaveSuccess);
         return(RedirectToAction("Index"));
     }
     return(View(@dayOfWeek));
 }
Beispiel #2
0
 public ActionResult Edit(int id)
 {
     Basketball.Domain.Entities.DayOfWeek @dayOfWeek = dayOfWeekService.Get(id);
     return(View(@dayOfWeek));
 }