예제 #1
0
        public async Task <IActionResult> PerformFormElementActionAsync(long elementId, [FromBody] FormElementActionRequest request, [FromQuery] long pageId)
        {
            PageContext context = new PageContext {
                PageId = pageId
            };
            FormElementActionResponse response = await _formElementService.PerformElementActionAsync(TenantId, elementId, request, context);

            return(Ok(response));
        }
예제 #2
0
        public async Task <object> PerformElementActionAsync(long tenantId, Guid elementTypeId, long elementId, string requestJson, IPageContext context)
        {
            switch (elementTypeId.ToString())
            {
            case "eafbd5ab-8c98-4edc-b8e1-42f5e8bfe2dc":
                return(await _formElementService.PerformElementActionAsync(tenantId, elementId, DeserializeJson <FormElementActionRequest>(requestJson), context));

            default:
                return(null);
            }
        }