Example #1
0
 public void deletelogic()
 {
     try
     {
         int c_id = Convert.ToInt32(Session["company_id"]);
         int b_id = Convert.ToInt32(Session["branch_id"]);
         int b    = Convert.ToInt32(ViewState["b"]);
         int a    = Convert.ToInt32(Session["company_id"]);
         context.sp_DeleteBranch(b, a);
         divalert.Visible = true;
         lblAlert.Text    = "Branch Deleted Successfully ";
         clr();
         grdbind();
     }
     catch (Exception ex)
     {
         ErrorLog.saveerror(ex);
         //Do Logging
     }
 }