public async Task <ActionResult <BusinessModel> > CreateMovie([FromBody] BusinessModel business) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var url = HttpContext.Request.Host; var createdBusiness = await businessService.CreateBusiness(business); return(CreatedAtRoute("GetBusiness", new { businessId = createdBusiness.Id }, createdBusiness)); } catch (InternalServerException ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }