Beispiel #1
0
 public void DeletePhoto(GetPhotoDto photoDto)
 {
     _photoRepository.DeletePhoto(new Photo
     {
         Id             = photoDto.UserPhotoId,
         Title          = photoDto.Title,
         ImageBytes     = photoDto.ImageBytes,
         UpdateDateTime = photoDto.UploadDateTime
     });
 }
Beispiel #2
0
        public async Task Handler(GetPhotoDto photo)
        {
            _deleteUserPhotoBusiness.DeletePhoto(photo);

            await _photoRepository.UnitOfWork.Save();
        }