Esempio n. 1
0
        public async Task <DriverDutyDto> AddAsync(DriverDutyDto dto)
        {
            var driverDuty = DriverDutyMapper.toDomain(dto);

            await this._repo.AddAsync(driverDuty);

            await this._unitOfWork.CommitAsync();

            return(DriverDutyMapper.toDTO(driverDuty));
        }