Exemplo n.º 1
0
 public List <Project> Get_Project(Int32 ID, string Action, Int32 DeletedBy)
 {
     if (Action == "Delete" || Action == "Delete1")
     {
         return(SqlHelpers.GetObjects <Project>(Util.Env, CommandFactory.Get_Project(ID, Action, DeletedBy), AdminObjectFactory.Delete_Project_Factory));
     }
     else if (Action == "Edit" || Action == "Edit1")
     {
         return(SqlHelpers.GetObjects <Project>(Util.Env, CommandFactory.Get_Project(ID, Action, DeletedBy), AdminObjectFactory.Edit_Project_Factory));
     }
     else
     {
         return(SqlHelpers.GetObjects <Project>(Util.Env, CommandFactory.Get_Project(ID, Action, DeletedBy), AdminObjectFactory.Get_Project_Factory));
     }
 }