Esempio n. 1
0
        public async Task <IActionResult> Delete([Required] long id)
        {
            if (await _companyRepo.IsCompanyIdExistsAsync(id))
            {
                var companyItem = await _companyRepo.FindCompanyByIdAsync(id);

                await _companyRepo.Delete(companyItem);

                return(Ok());
            }
            else
            {
                return(NotFound());
            }
        }