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

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