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); }
public static List <SelectionCategoryDetail> Get(int equipmentId) { return(SelectionCategoryDetail.GetAll().FindAll(p => p.EquipmentId == equipmentId)); }