コード例 #1
0
        // GET: Voucher
        /// <summary>
        /// Returns all worker's vouchers.
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            int worker_Id = UserStateManager.Instance.WorkerId;
            var all       = VouchersBL.GetAll(worker_Id);

            return(View(all));
        }
コード例 #2
0
        // GET: Details.
        public ActionResult Details(int id)
        {
            var item = VouchersBL.GetVoucher(id);

            return(View(item));
        }