Exemple #1
0
 public ActionResult _AddEmployer(Employer mEmployer)
 {
     if (ModelState.IsValid)
     {
         var man = new Employer();
         if (TryUpdateModel(man))
         {
             if (ExecuteRepositoryAction(() => { _employerService.AddEmployer(man); _employerService.CommitChanges(); }))
             {
                 return(ReturnJsonFormSuccess());
             }
         }
     }
     return(PartialView("Edit", mEmployer));
 }