コード例 #1
0
        public ActionResult Edit(AccountingPeriodTimeFrame accountingPeriodTimeFrame)
        {
            if (ModelState.IsValid)
            {
                unitOfWork.AccountingPeriodTimeFrameRepository.Update(accountingPeriodTimeFrame);
                unitOfWork.Save();
                return RedirectToAction("Index");
            }

            return View(accountingPeriodTimeFrame);
        }
コード例 #2
0
 public ActionResult Create()
 {
     AccountingPeriodTimeFrame ptf = new AccountingPeriodTimeFrame();
     ptf.Active = true;
     return View(ptf);
 }