public List <Site_Progress> Get_Site_Progress(Int32 ID, string Action, Int32 DeletedBy) { if (Action == "Delete" || Action == "Delete1") { return(SqlHelpers.GetObjects <Site_Progress>(Util.Env, CommandFactory.Get_Site_Progress(ID, Action, DeletedBy), AdminObjectFactory.Delete_Site_Progress_Factory)); } else if (Action == "Edit" || Action == "Edit1") { return(SqlHelpers.GetObjects <Site_Progress>(Util.Env, CommandFactory.Get_Site_Progress(ID, Action, DeletedBy), AdminObjectFactory.Edit_Site_Progress_Factory)); } else { return(SqlHelpers.GetObjects <Site_Progress>(Util.Env, CommandFactory.Get_Site_Progress(ID, Action, DeletedBy), AdminObjectFactory.Get_Site_Progress_Factory)); } }