Beispiel #1
0
 public List <Sites> Get_Sites(Int32 ID, string Action, Int32 DeletedBy)
 {
     if (Action == "Delete" || Action == "Delete1")
     {
         return(SqlHelpers.GetObjects <Sites>(Util.Env, CommandFactory.Get_Sites(ID, Action, DeletedBy), AdminObjectFactory.Delete_Sites_Factory));
     }
     else if (Action == "Edit" || Action == "Edit1")
     {
         return(SqlHelpers.GetObjects <Sites>(Util.Env, CommandFactory.Get_Sites(ID, Action, DeletedBy), AdminObjectFactory.Edit_Sites_Factory));
     }
     else
     {
         return(SqlHelpers.GetObjects <Sites>(Util.Env, CommandFactory.Get_Sites(ID, Action, DeletedBy), AdminObjectFactory.Get_Sites_Factory));
     }
 }