示例#1
0
        public async Task <IActionResult> DeleteCompany(int id)
        {
            try
            {
                await _repository.DeleteCompanyAsync(id);

                return(Ok());
            }
            catch (KeyNotFoundException)
            {
                return(NotFound());
            }
        }