Exemplo n.º 1
0
        public IHttpActionResult DeletePainting(int id)
        {
            _logger.Write("Delete painting was called", LogLevel.INFO);
            if (!_pr.Delete(id))
            {
                return(NotFound());
            }

            return(Ok());
        }
Exemplo n.º 2
0
        public IHttpActionResult DeletePainting(int id)
        {
            Painting Painting = repo.Get(id);

            if (Painting == null)
            {
                return(NotFound());
            }

            repo.Delete(id);

            return(Ok(Painting));
        }
Exemplo n.º 3
0
 // DELETE: api/Paintings/5
 public void Delete(int id)
 {
     logger.Write("DELETE for paintings", LogLevel.INFO);
     paintingsRepository.Delete(id);
 }
Exemplo n.º 4
0
 // DELETE: api/Paintings/5
 public void Delete(int id)
 {
     db.Delete(id);
 }
Exemplo n.º 5
0
 // DELETE api/values/5
 public void Delete(int id)
 {
     repo.Delete(id);
 }