public UserBOResponse SignUp(UserBORequest userBORequest) { var userRequest = _mapper.Map <uspValidateUser_Result>(userBORequest); uspValidateUser_Result user = _loginRepository.SignUp(userRequest); return(_mapper.Map <UserBOResponse>(user)); }
public ActionResult SignUp(UserBORequest userBORequest) { if (ModelState.IsValid) { UserBOResponse userBOResponse = _loginService.SignUp(userBORequest); if (userBOResponse != null) { return(RedirectToAction("Index", "Login")); } else { return(View()); } } else { return(View()); } }