try { BasePaperWeightDAL.Get(o => o.IsDeleted == false && o.IsEnabled == true).OrderByDescending(o => o.Sort). ThenByDescending(o => o.CreateTime).ToList().ForEach(o => { if (o.WeightValue != null) { o.WeightValue = Convert.ToInt32(o.WeightValue); } LstBasePaperWeight.Add(o); }); } catch (Exception ex) { }