コード例 #1
0
 public ActionResult selectAll(string value)
 {
     ListViewModel model = new ListViewModel();
     model.item.Codigo = value;
     model.item.Descricao = value;
     model.Filter();
     model.OrderBy(q => q.Descricao);
     return Json(model.query.Take(50).Select(s => new
     {
         s.Id,
         s.Descricao
     }));
 }
コード例 #2
0
 public ActionResult select(ListViewModel model)
 {
     model.Filter();
     model.OrderBy(q => q.Descricao);
     return View(model);
 }
コード例 #3
0
 public ActionResult select()
 {
     var model = new ListViewModel();
     model.OrderBy(q => q.Descricao);
     return View(model);
 }