public ActionResult Delete(Int64 id)
        {
            var result = new QsResult();
            var model  = _suggestionService.GetSuggestionById(id);

            if (model == null)
            {
                result.Success = false;
                result.Message = @"找不到对象";
                return(Json(result));
            }
            _suggestionService.DeleteSuggestion(id);
            return(Json(result));
        }
Exemplo n.º 2
0
 public ResponseResource Post(DeleteSugestionRequest request)
 {
     return(_service.DeleteSuggestion(User, request));
 }
 public HttpResponseMessage Post(DeleteSugestionRequest request)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, _service.DeleteSuggestion(User, request)));
 }