예제 #1
0
 public List <Unit> GetUnits(Int32 Unitid, string Action, Int32 DeletedBy)
 {
     if (Action == "Delete" || Action == "Delete1")
     {
         return(SqlHelpers.GetObjects <Unit>(Util.Env, CommandFactory.GetUnits(Unitid, Action, DeletedBy), AdminObjectFactory.DeleteUnitItemFactory));
     }
     else if (Action == "Edit" || Action == "Edit1")
     {
         return(SqlHelpers.GetObjects <Unit>(Util.Env, CommandFactory.GetUnits(Unitid, Action, DeletedBy), AdminObjectFactory.EditUnitItemFactory));
     }
     else
     {
         return(SqlHelpers.GetObjects <Unit>(Util.Env, CommandFactory.GetUnits(Unitid, Action, DeletedBy), AdminObjectFactory.GetUnitItemFactory));
     }
 }