public async Task UpdateTechnician(TechnicianDto dto)
        {
            var tech = _mapper.Map <Technician>(dto);

            _context.Technicians.Update(tech);
            await _context.SaveChangesAsync().ConfigureAwait(false);
        }
 public async Task <ActionResult <TechnicianDto> > AddTechnician(TechnicianDto dto)
 {
     if (dto.FirstName is null || dto.LastName is null)
     {
         return(BadRequest("First and Last name required"));
     }
     return(Created(nameof(GetTechnician), await _service.AddTechnician(dto.FirstName, dto.LastName).ConfigureAwait(false)));
 }
        public async Task <ActionResult> UpdateTechnician(TechnicianDto dto)
        {
            await _service.UpdateTechnician(dto).ConfigureAwait(false);

            return(Ok());
        }