public ActionResult Register(RegisterViewModel rvm) { var result = _hrService.RegisterEmployeeProfile(rvm); if (result.Succeeded) { return(RedirectToAction("Index", "Home")); } else { return(View()); } }
public ActionResult Register(RegisterViewModel rvm) { _hrService.RegisterEmployeeProfile(rvm); return(View()); }