public async Task <bool> DeletePainting(int id) { if (await _repository.DeletePainting(id)) { return(true); } throw new Exception(); }
public bool DeletePainting(int id) { return(paintingRepository.DeletePainting(id)); }
public async Task <bool> DeletePainting(int id) { if (await _repository.DeletePainting(id)) { return(true); } throw new Exception(); }
public bool DeletePainting(int id) { return(paintingRepository.DeletePainting(id)); }