Esempio n. 1
0
 public ActionResult SaveCreditType(CreditTypeEditModel model)
 {
     if (ModelState.IsValid)
     {
         creditTypeService.SaveEditCreditType(model);
         return RedirectToAction("CreditTypeGrid");
     }
     else
     {
         return RedirectToAction("SaveCreditType");
     }
 }
 public void SaveEditCreditType(CreditTypeEditModel model)
 {
     var dalCreditType = Mapper.Map<CreditType>(model);
     creditTypeReporsitory.SaveUpdateCreditType(dalCreditType);
 }
Esempio n. 3
0
 public ActionResult SaveEditCreditType(int creditTypeId = 0)
 {
     var model = creditTypeService.GetCreditTypeEditModelById(creditTypeId);
     if(model == null)
     { model = new CreditTypeEditModel();}
     
     return View(model);
 }