public UserCreateResponse Create([FromBody] UserCreateRequest request) { var response = new UserCreateResponse(); response.Id = _facade.Create(request.User); return(response); }
public IActionResult OnPost() { UserDto.Email = Request.Form["emailaddress"]; UserDto.Name = Request.Form["name"]; UserDto.Surname = Request.Form["surname"]; userFacade.Create(UserDto); logger.LogInformation("User created"); return(RedirectToPage("/Users")); }