Esempio n. 1
0
        public async Task <object> FirstAvailableByDate([FromBody] RoomDateModel model)
        {
            try
            {
                var result = await _examinationContract.FirstAvailableByDate(_mapper.Map <RoomDateModel, RoomDatePOCO>(model));

                return(result);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Esempio n. 2
0
        public async Task <object> GetRoomsByTime([FromBody] RoomDateModel model)
        {
            try
            {
                var result = await _examinationContract.GetOccupancyForRoomByDate(_mapper.Map <RoomDateModel, RoomDatePOCO>(model));

                return(result);
            }
            catch (Exception e)
            {
                throw e;
            }
        }