public ActionResult Edit(AccountingPeriodTimeFrame accountingPeriodTimeFrame) { if (ModelState.IsValid) { unitOfWork.AccountingPeriodTimeFrameRepository.Update(accountingPeriodTimeFrame); unitOfWork.Save(); return RedirectToAction("Index"); } return View(accountingPeriodTimeFrame); }
public ActionResult Create() { AccountingPeriodTimeFrame ptf = new AccountingPeriodTimeFrame(); ptf.Active = true; return View(ptf); }