Ejemplo n.º 1
0
        public async Task <IActionResult> PostAsync([FromBody] BuildingDto buildingDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            return(Created("", await _buildingService.CreateAsync(HttpContext.User.GetAccountId(), buildingDto)));
        }