public ActionResult DeleveredOrders() { int branchId = Convert.ToInt32(Session["BranchId"]); int companyId = Convert.ToInt32(Session["CompanyId"]); var user = (ViewUser)Session["user"]; var orders = _iDeliveryManager.GetAllDeliveredOrdersByBranchCompanyAndUserId(branchId, companyId, user.UserId).ToList(); return(View(orders)); }