// [RequestFormLimits(MultipartBodyLengthLimit = long.MaxValue)] public async Task <IActionResult> AddRentalProperty([FromForm] RentalProperty property) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _manager.AddRentalProperty(property); if (result != null) { return(Ok(result)); } return(BadRequest()); }