// 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); }
public async Task <BaseResponse> Delete(int id) { return(constructResponse(await _businessBase.Delete(id))); }