예제 #1
0
        public async Task Delete()
        {
            var id = this.Handler.Request.Query.Get <int>("id");

            QueryRepository.Delete(id);
            await Handler.Ok();
        }
예제 #2
0
        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());
            }
        }
예제 #3
0
        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);
        }
예제 #4
0
 public void Delete(int queryId, int UserID)
 {
     m_Repository.Delete(queryId, UserID);
 }
예제 #5
0
 public RObject Delete([FromRoute] string customerId)
 {
     return(queryRepository.Delete(customerId));
 }