Ejemplo n.º 1
0
 public ActionResult Edit(LedgerType ledgerType)
 {
     if (ModelState.IsValid)
     {
         ledgerRepository.SaveLedgerType(ledgerType);
         TempData["message"] = string.Format("{0} saved successfully", ledgerType.LedgerTypeName);
         CacheRepository.RefreshLedgerTypes();
         return(RedirectToAction("Index"));
     }
     return(View(ledgerType));
 }