Exemple #1
0
        //DELETE
        public IHttpActionResult Delete(int id)
        {
            var quer = _service.Delete(id);

            if (quer == false)
            {
                return(NotFound());
            }
            return(Ok());
        }
Exemple #2
0
 // DELETE: api/Offer/5
 public bool Delete(int id)
 {
     return(offerService.Delete(id));
 }