public async Task <PrintingEditionModelItem> FindByIdAsync(int id) { var printingEditionModel = new PrintingEditionModelItem(); var printingEdition = await _printingEditionRepository.FindByIdAsync(id); if (printingEdition == null) { printingEditionModel.Errors.Add(Constants.Errors.NotFoundPrintingEditionError); return(printingEditionModel); } printingEditionModel = printingEdition.MapToModel(); return(printingEditionModel); }