public IHttpActionResult AddNewUser(UserDTO user)
 {
     try
     {
         var new_user = UserBL.AddNewUser(user);
         if (new_user != null)
         {
             return(Ok(new_user));
         }
         return(NotFound());
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Beispiel #2
0
 public UserDto AddNewUser(UserDto userDto)
 {
     return(UserBL.AddNewUser(userDto));
 }