Ejemplo n.º 1
0
        public ActionResult GetRooms()
        {
            var currentUserId = User.Identity.GetUserId();
            var rooms         = _roomServices.GetRooms(currentUserId);

            return(Json(rooms, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Create()
        {
            var room = _dbroom.GetRooms();

            ViewBag.Room = new SelectList(room, "Room_NumberID", "Room_Type");

            var store = _dbstore.GetStores();

            ViewBag.Store = new SelectList(store, "Store_ID", "Store_Name");

            var stockitem = _dbstockitem.GetStockItems();

            ViewBag.StockItem = new SelectList(stockitem, "Item_ID", "Item_Name");

            return(View());
        }
Ejemplo n.º 3
0
 // GET: Room
 public ActionResult Index()
 {
     return(View(_db.GetRooms()));
 }