コード例 #1
0
        public ActionResult db_Update([DataSourceRequest] DataSourceRequest request, Legal_AssistanceViewModel db)
        {
            if (db != null && ModelState.IsValid)
            {
                Legal_AssistanceService.Update(db);
            }

            return(Json(new[] { db }.ToDataSourceResult(request, ModelState)));
        }
コード例 #2
0
        public ActionResult db_Destroy([DataSourceRequest] DataSourceRequest request, Legal_AssistanceViewModel db)
        {
            if (db != null)
            {
                Legal_AssistanceService.Destroy(db);
            }

            return(Json(new[] { db }.ToDataSourceResult(request, ModelState)));
        }