Ejemplo n.º 1
0
        public static Models.PaperSize.List List()
        {
            using (var db = new XkSystem.Models.DbContext())
            {
                var vm = new Models.PaperSize.List();
                var tb = from p in db.Table <Dict.Entity.tbDictPaperSize>()
                         select p;
                if (string.IsNullOrEmpty(vm.SearchText) == false)
                {
                    tb = tb.Where(d => d.PaperSizeName.Contains(vm.SearchText));
                }

                vm.PaperSizeList = (from p in tb
                                    orderby p.No
                                    select p).ToList();
                return(vm);
            }
        }
Ejemplo n.º 2
0
 public ActionResult List(Models.PaperSize.List vm)
 {
     return(Code.MvcHelper.Post(null, Url.Action("List")));
 }