public JsonResult GetBillSet() { var model = BillSetBll.GetByHotelId(UserContext.CurrentUser.Id); return(Json(model ?? new Model.BillSet() { HotelId = UserContext.CurrentUser.HotelId })); }
// GET: BillSet public ActionResult Index() { var billSet = BillSetBll.GetByHotelId(UserContext.CurrentUser.HotelId); if (billSet == null) { billSet = new BillSet(); } ViewBag.BillSet = billSet; return(View()); }