示例#1
0
        // DELETE api/Entidad/5
        // [ResponseType(typeof(TEntity))]
        public virtual IHttpActionResult Delete(long id)
        {
            objDb.Delete(id);
            //obj obj = db.obj.Find(id);
            //if (obj == null)
            //{
            //    return NotFound();
            //}

            //db.obj.Remove(obj);
            //db.SaveChanges();

            return(Ok()); //Ok(obj);
        }
示例#2
0
 public async Task <BaseResponse> Delete(int id)
 {
     return(constructResponse(await _businessBase.Delete(id)));
 }