public ActionResult CompanyDeleted(int cid) { if (Session["Login"] != null) { gelen = (AppUsers)Session["Login"]; if (gelen.Status.Value == 3) { companyManagement.DeleteCompany(cid); return(RedirectToAction("CompanyActivate", "AdminCompanyActivate")); } else { return(RedirectToAction("Index", "Home", new { area = "" })); } } else { return(RedirectToAction("Index", "Home", new { area = "" })); } }
public IActionResult DeleteCompany(int Id) { var result = cm.DeleteCompany(Id); return(Ok(result)); }