// [RequestFormLimits(MultipartBodyLengthLimit = long.MaxValue)] public async Task <IActionResult> EditCommercialProperty([FromRoute] int id, [FromBody] CommercialProperty property) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _manager.EditCommercialProperty(id, property); if (result != null) { return(Ok(result)); } return(BadRequest()); }