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