コード例 #1
0
        public UserBOResponse SignUp(UserBORequest userBORequest)
        {
            var userRequest             = _mapper.Map <uspValidateUser_Result>(userBORequest);
            uspValidateUser_Result user = _loginRepository.SignUp(userRequest);

            return(_mapper.Map <UserBOResponse>(user));
        }
コード例 #2
0
 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());
     }
 }