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 }); }
public ActionResult Create(Plan item) { _iPlanService.Save(null, item); _unitOfWork.Commit(); return RedirectToAction("Index", new { date = item.StartDate.Date }); }