/// <summary> /// Get printer from database. /// </summary> /// <param name="printerKey"></param> public async Task <PrinterResponse> GetPrinterByKey(Guid printerKey) { var printer = await _printerRepository.GetAsync(printerKey); return(_mapper.Map <PrinterResponse>(printer)); }