Ejemplo n.º 1
0
        public async Task <DriverDto> CreateDriver(CreateDriverDto createDriverDto)
        {
            var toy = new DriverEntity()
            {
                Id      = GetNewId(),
                Name    = createDriverDto.Name,
                Address = createDriverDto.Address,
            };

            DriversTable.Rows.Add(toy);

            await UpdateDatabase();

            return(ClientifyDriver(toy));
        }
Ejemplo n.º 2
0
 public async Task CreateDriver(CreateDriverDto createDriverDto)
 {
     await DriverDB.CreateDriver(createDriverDto);
 }