Esempio n. 1
0
        public bool ReservationAdd(Reservation model)
        {
            var id   = _tempRoomService.GetAll().FirstOrDefault().Id;
            var data = _tempRoomService.GetById(id);

            model.EntyDate      = data.EntyDate;
            model.ReleaseDate   = data.ReleaseDate;
            model.NumberOfNight = data.NumberOfNight;
            model.GuestCount    = data.GuestCount;
            model.TotalPrice    = data.TotalPrice;
            model.Description   = data.Description + data.Description2;
            model.CreatedDate   = DateTime.Now;
            this.Add(model);
            return(true);
        }
        public IActionResult GetRoom()
        {
            var data = _tempRoomServices.GetAll().FirstOrDefault();

            return(View(data));
        }