Esempio n. 1
0
        public ActionResult Edit(Guid id, Plan item)
        {
            if (!ModelState.IsValid)
            {
                Edit(id);
                return View(item);
            }

            _iPlanService.Save(id, item);
            _unitOfWork.Commit();
            return RedirectToAction("Index", new { date = item.StartDate.Date });
        }
Esempio n. 2
0
 public ActionResult Create(Plan item)
 {
     _iPlanService.Save(null, item);
     _unitOfWork.Commit();
     return RedirectToAction("Index", new { date = item.StartDate.Date });
 }