/// <summary> /// Posts the view. /// </summary> private void PostView() { var a = chatLieuService.GetAll(); var listModel = a.Select(b => b.ToModel()).ToList(); view.PostView(listModel); }
// GET: NhaCungCap public ActionResult Index(string search, int page = 1, int pagesize = 10) { return(View(nhaCungCap.GetAll(search, page, pagesize))); }