public void FromBltoUiDeleteAsync(Guid id) { var getFromR = _photoRepository.GetByIdAsync(id); _photoRepository.DeleteAsync(getFromR.PhotoId); }
public async Task FromBltoUiDeleteAsync(Guid id) { var getFromR = await _photoRepository.GetByIdAsync(id); await _photoRepository.DeleteAsync(getFromR); }