public IActionResult DeleteConfirmed(int id) { var companyType = companyTypesRepository.Get(id); companyTypesRepository.Delete(id); return(RedirectToAction("Index")); }
public bool Delete(int CompanyTypeId) { return(repository.Delete(CompanyTypeId)); }