コード例 #1
0
        public async Task <IActionResult> AddCompany([FromBody] Company company)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await _repository.SaveCompanyAsync(company);

            return(Ok(company));
        }