コード例 #1
0
        public ActionResult IndexSearch(int?Id)
        {
            ViewBag.OrderTypes = new SelectList(_orderTypeViewService.ViewAll(), "Id", "OrderTypeName");

            var selected_orders = _orderViewService.ViewAll().Where(u => u.User.UserEmail == HttpContext.User.Identity.Name).
                                  Where(u => Id == null || u.OrderTypeId == Id).OrderBy(o => o.OrderDate).ThenBy(n => n.OrderNumber);


            return(PartialView(selected_orders));
        }
コード例 #2
0
 public ViewResult Index()
 {
     ViewBag.OrderTypes = new SelectList(_orderTypeViewService.ViewAll(), "Id", "OrderTypeName");
     ViewBag.Users      = new SelectList(_userViewService.ViewAll(), "Id", "UserName");
     return(View(_orderViewService.ViewAll()));
 }
コード例 #3
0
 //list
 public ViewResult Index()
 {
     return(View(_orderTypeViewService.ViewAll()));
 }