Exemple #1
0
 public List <Customers> Get_Customers(Int32 ID, string Action, Int32 DeletedBy)
 {
     if (Action == "Delete" || Action == "Delete1")
     {
         return(SqlHelpers.GetObjects <Customers>(Util.Env, CommandFactory.Get_Customers(ID, Action, DeletedBy), AdminObjectFactory.Delete_Customers_Factory));
     }
     else if (Action == "Edit" || Action == "Edit1")
     {
         return(SqlHelpers.GetObjects <Customers>(Util.Env, CommandFactory.Get_Customers(ID, Action, DeletedBy), AdminObjectFactory.Edit_Customers_Factory));
     }
     else
     {
         return(SqlHelpers.GetObjects <Customers>(Util.Env, CommandFactory.Get_Customers(ID, Action, DeletedBy), AdminObjectFactory.Get_Customers_Factory));
     }
 }