コード例 #1
0
        public ActionResult _EditOperation(OperationEditModel operationEditModel)
        {
            ApplicationManagementOperation operation = operationEditModel.AsApplicationManagementOperation();

            operationService.Update(operation);
            return Json(new StatusMessageData(StatusMessageType.Success, "更新成功"));
        }
コード例 #2
0
        public ActionResult _CreateOperation(OperationEditModel operationEditModel)
        {
            string presentAreaKey = Request.QueryString.Get<string>("presentAreaKey", string.Empty);
            ManagementOperationType? operationType = Request.QueryString.Get<ManagementOperationType?>("operationType", null);
            ApplicationManagementOperation operation = operationEditModel.AsApplicationManagementOperation();
            operation.PresentAreaKey = presentAreaKey;
            operation.OperationType = (ManagementOperationType)operationType;

            operationService.Create(operation);

            return Json(new StatusMessageData(StatusMessageType.Success, "创建成功"));
        }