Example #1
0
        public void DeletePrintingEdition(PrintingEditionModel printingEdition)
        {
            var dbPrintingEdition = _printingEditionRepository.GetById(printingEdition.Id);

            if (dbPrintingEdition is null)
            {
                throw new CustomApiException(HttpStatusCode.BadRequest, Constants.PRINTINGEDITIONNOTFOUNDERROR);
            }
            _printingEditionRepository.Delete(dbPrintingEdition);
        }
 public async Task DeletePrintingEdition(int id)
 {
     await _printEditRepository.Delete(id);
 }