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 })); }
public ActionResult select(ListViewModel model) { model.Filter(); model.OrderBy(q => q.Descricao); return View(model); }
public ActionResult select() { var model = new ListViewModel(); model.OrderBy(q => q.Descricao); return View(model); }