Ejemplo n.º 1
0
        public async Task <bool> DeletePainting(int id)
        {
            if (await _repository.DeletePainting(id))
            {
                return(true);
            }

            throw new Exception();
        }
Ejemplo n.º 2
0
 public bool DeletePainting(int id)
 {
     return(paintingRepository.DeletePainting(id));
 }