public ActionResult Create(NomineeDetailsViewModel nomineeDetailsViewModel) { if (ModelState.IsValid) { _nomineeDetailsManager.IsRegister(nomineeDetailsViewModel); return(RedirectToAction("Create", "OriginDetails")); } return(View(nomineeDetailsViewModel)); }
public void IsUpdate(NomineeDetailsViewModel nomineeDetailsViewModel) { _nomineeDetailsRepository.IsUpdatee(nomineeDetailsMapping.MapToModel(nomineeDetailsViewModel)); _nomineeDetailsRepository.UnitOfWork.Save(); }