Example #1
0
        public JsonResult GetBillSet()
        {
            var model = BillSetBll.GetByHotelId(UserContext.CurrentUser.Id);

            return(Json(model ?? new Model.BillSet()
            {
                HotelId = UserContext.CurrentUser.HotelId
            }));
        }
Example #2
0
        // GET: BillSet
        public ActionResult Index()
        {
            var billSet = BillSetBll.GetByHotelId(UserContext.CurrentUser.HotelId);

            if (billSet == null)
            {
                billSet = new BillSet();
            }
            ViewBag.BillSet = billSet;
            return(View());
        }