public async Task <bool> DeletePhoto(string photoId, string albumId, User requestor) { if (!await _permissionsService.CanDeletePicture(requestor, albumId)) { return(false); } var photo = await _unitOfWork.Photos.GetFirst(x => x.PhotoId == photoId); if (photo == null) { return(false); } await _ftpService.DeletePhoto(photo); await _unitOfWork.Photos.Delete(photo); return(true); }