Пример #1
0
        public async Task <NumberOfSeatsModel> GetNumberOfSeats(int id)
        {
            var data = _seatsRepository.GetMaxValuesByAuditoriumId(id);

            if (data == null)
            {
                return(null);
            }

            NumberOfSeatsModel domainModel = new NumberOfSeatsModel
            {
                MaxNumber = data[0],
                MaxRow    = data[1]
            };

            return(domainModel);
        }