示例#1
0
        public static int GetMaxSortNo(int categoryId)
        {
            var details = SelectionCategoryDetail.GetAll().FindAll(p => p.SelectionCategoryId == categoryId);

            if (details.Count != 0)
            {
                return(details.Max(p => p.SortNo));
            }

            return(0);
        }
示例#2
0
 public static List <SelectionCategoryDetail> Get(int equipmentId)
 {
     return(SelectionCategoryDetail.GetAll().FindAll(p => p.EquipmentId == equipmentId));
 }