Ejemplo n.º 1
0
        public ActionResult Create(OriginDetailsViewModel originDetailsViewModel)
        {
            if (ModelState.IsValid)
            {
                _originDetailsManager.IsRegister(originDetailsViewModel);
                return(RedirectToAction("Create", "WorkingHistoryDetails"));
            }

            return(View(originDetailsViewModel));
        }
Ejemplo n.º 2
0
 public void IsUpdate(OriginDetailsViewModel originDetailsViewModel)
 {
     _originDetailsRepository.IsUpdatee(originDetailsMapping.MapToModel(originDetailsViewModel));
     _originDetailsRepository.UnitOfWork.Save();
 }