Example #1
0
        private void DeleteOutdatedCompanies()
        {
            AspSettings settings = AspSettings.Load();

            if (settings.AutoDeleteOutdated)
            {
                foreach (Guid cid in CManage.GetCompaniesByCategory(CompanyCategory.Outdated, settings.OutdatePeriod, false))
                {
                    try
                    {
                        CManage.DeleteCompany(cid);
                    }
                    catch (Exception ex)
                    {
                        Log.WriteError(ex.ToString());
                    }
                }
            }
        }
Example #2
0
 protected void lbDelete_Click(object sender, System.EventArgs e)
 {
     CManage.DeleteCompany(CompanyUid);
     Response.Redirect("../Pages/Sites.aspx");
 }
Example #3
0
 public void Delete(string companyId)
 {
     CManage.DeleteCompany(new Guid(companyId));
 }
Example #4
0
 protected void lbDelete_Click(object sender, System.EventArgs e)
 {
     CManage.DeleteCompany(new Guid(txtID.Value));
     BindData();
 }