Example #1
0
        // [RequestFormLimits(MultipartBodyLengthLimit = long.MaxValue)]
        public async Task <IActionResult> AddCommercialProperty([FromForm] CommercialProperty property)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await _manager.AddIndustrialProperty(property);

            if (result != null)
            {
                return(Ok(result));
            }

            return(BadRequest());
        }