Esempio n. 1
0
 public ActionResult ArmEdit(PartnershipArmViewModel model)
 {
     if (ModelState.IsValid)
     {
         var persistentEntity = _armService.GetSingle(model.Id);
         persistentEntity.Description = model.Description;
         persistentEntity.Name = model.Name;
         persistentEntity.ShortFormName = model.ShortFormName;
         return Json(new {});
     }
     return PartialView(model);
 }
Esempio n. 2
0
 public ActionResult ArmCreate(PartnershipArmViewModel model)
 {
     if (ModelState.IsValid)
     {
         var m = Mapper.Map<PartnershipArm>(model);
         _armService.Create(m);
         return Json(new {});
     }
     return PartialView(model);
 }