示例#1
0
        public async Task <IActionResult> CreateCompany(CompanyToCreateDto companyToCreate)
        {
            CompanyDto createdCompany = await _service.CreateCompany(companyToCreate);

            if (createdCompany == null)
            {
                return(StatusCode(400));
            }
            return(StatusCode(200, createdCompany));
        }