Ejemplo n.º 1
0
        public ActionResult View_Delivery_Man()
        {
            if (Session["userId"] == null)
            {
                return(RedirectToAction("Index", "UserHome"));
            }

            DeliveryManViewModel D = new DeliveryManViewModel();

            D.members     = _MemberService.GetAll();
            D.Invoices    = _InvoiceService.GetAll();
            D.DeliveryMan = _DeliveryManService.GetAll();
            D.MemberCount = _DeliveryManService.GetAll().Count();
            D.ReportCount = _ReportService.GetByUnseenStatus().Count();
            return(View(D));
        }