Esempio n. 1
0
        public async Task <IMonthDao> HandleAsync(GetMonthByIdCommand command)
        {
            var monthDto = MonthDto.SetMonthId(command.monthId);
            var month    = await _monthDal.GetMonthByIdAsync(monthDto);

            return(month);
        }
        public async Task <IMonthDao> Get(int id)
        {
            var command = new GetMonthByIdCommand {
                monthId = id
            };
            IMonthDao month = await _monthHandler.HandleAsync(command).ConfigureAwait(false);

            return(month);
        }