public IActionResult Post([FromBody] Models.User user) { if (!ModelState.IsValid) { return(new BadRequestResult()); } var userId = _userInteractor.CreateUser(Models.User.MapToEntity(user)); user.Id = userId; return(CreatedAtRoute("GetUser", new { id = userId }, user)); }