//Post: api/estate public IHttpActionResult Post([FromBody] EstateModel model) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _estateService.Create(model); return(Ok(model)); } catch (Exception ec) { return(BadRequest(ec.Message)); } }