public ActionResult Create(NomineeDetailsViewModel nomineeDetailsViewModel)
        {
            if (ModelState.IsValid)
            {
                _nomineeDetailsManager.IsRegister(nomineeDetailsViewModel);
                return(RedirectToAction("Create", "OriginDetails"));
            }

            return(View(nomineeDetailsViewModel));
        }
Exemple #2
0
 public void IsUpdate(NomineeDetailsViewModel nomineeDetailsViewModel)
 {
     _nomineeDetailsRepository.IsUpdatee(nomineeDetailsMapping.MapToModel(nomineeDetailsViewModel));
     _nomineeDetailsRepository.UnitOfWork.Save();
 }