示例#1
0
 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 = "" }));
     }
 }
示例#2
0
        public IActionResult DeleteCompany(int Id)
        {
            var result = cm.DeleteCompany(Id);

            return(Ok(result));
        }