public List <PO> Get_PO(Int32 ID, string Action, Int32 DeletedBy) { if (Action == "Delete" || Action == "Delete1") { return(SqlHelpers.GetObjects <PO>(Util.Env, CommandFactory.Get_PO(ID, Action, DeletedBy), AdminObjectFactory.Delete_PO_Factory)); } else if (Action == "Edit" || Action == "Edit1") { return(SqlHelpers.GetObjects <PO>(Util.Env, CommandFactory.Get_PO(ID, Action, DeletedBy), AdminObjectFactory.Edit_PO_Factory)); } else { return(SqlHelpers.GetObjects <PO>(Util.Env, CommandFactory.Get_PO(ID, Action, DeletedBy), AdminObjectFactory.Get_PO_Factory)); } }