示例#1
0
        public async Task DeleteAsync(string filename)
        {
            try
            {
                // Delete from filesystem
                await imageFileService.DeleteImageFileAsync(filename);

                // Delete from the backing store
                await qrCodeRepository.DeleteQrCodeAsync(filename);

                await qrCodeRepository.SaveChangesAsync();
            }
            catch
            {
                throw new Exception("Error deleting qr code");
            }
        }