コード例 #1
0
        public ActionResult Project_Destroy([DataSourceRequest] DataSourceRequest request, projectViewModle db)
        {
            if (db != null)
            {
                ProjectServices.Destroy(db);
            }

            return(Json(new[] { db }.ToDataSourceResult(request, ModelState)));
        }
コード例 #2
0
        public ActionResult Project_Update([DataSourceRequest] DataSourceRequest request, projectViewModle db)
        {
            if (db != null && ModelState.IsValid)
            {
                ProjectServices.Update(db);
            }

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