Esempio n. 1
0
        public UserCreateResponse Create([FromBody] UserCreateRequest request)
        {
            var response = new UserCreateResponse();

            response.Id = _facade.Create(request.User);

            return(response);
        }
Esempio n. 2
0
        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"));
        }