public async Task Delete() { var id = this.Handler.Request.Query.Get <int>("id"); QueryRepository.Delete(id); await Handler.Ok(); }
public ActionResult Delete(int id) { var ent = _queryRepository.Get(x => x.Id == id); if (ent != null) { _queryRepository.Delete(ent); return(RedirectToAction("Index")); } else { return(BadRequest()); } }
public async Task <ResultObj <int> > delete(DtoDo <int> inEnt) { ResultObj <int> reObj = new ResultObj <int>(); try { reObj.data = await _query.Delete(x => x.id == inEnt.Key); } catch (Exception ex) { LogHelper.WriteErrorLog(typeof(QueryController), ex.ToString()); reObj.msg = ex.Message; reObj.success = false; } return(reObj); }
public void Delete(int queryId, int UserID) { m_Repository.Delete(queryId, UserID); }
public RObject Delete([FromRoute] string customerId) { return(queryRepository.Delete(customerId)); }