public IActionResult Delete(CompaniesVM company) // Model binding { int?id = company.Id; _cService.Delete(id); // Redirect to index return(RedirectToAction("Index")); }
public IActionResult Delete(CompaniesVM company) // Model binding { int?id = company.Id; _cService.Delete(id); // Redirect to index return(RedirectToAction("Index")); }