public IActionResult AddUser(UserManagerResource userResource) { UserManager user = mapper.Map <UserManagerResource, UserManager>(userResource); BaseResponse <UserManager> userResponse = userService.AddUser(user); if (userResponse.Success) { return(Ok(userResponse.Extra)); } else { return(BadRequest(userResponse.ErrorMessage)); } }