コード例 #1
0
        public ActionResult Details(Guid id)
        {
            var info  = service.GetById(id);
            var model = new ErrorReportingModel().ToModel(info);

            return(View(PluginHelper.GetViewPath(this.GetType(), "Details"), model));
        }
コード例 #2
0
        public ActionResult Delete(Guid id)
        {
            ErrorReportingModel model = new ErrorReportingModel();
            var info = service.GetById(id);

            if (info != null)
            {
                info.IsDelete = true;
                service.UpdateGoogleProductRecord(info);
                return(Json(new AjaxResult()
                {
                    Result = Result.Success, Message = "²Ù×÷³É¹¦"
                }));
            }
            return(View(PluginHelper.GetViewPath(this.GetType(), "Delete"), model));
        }