Beispiel #1
0
        public async Task <ActionResult> GetFlow(string name, string urlFilter)
        {
            try
            {
                Guid?id = null;
                if (!string.IsNullOrEmpty(urlFilter))
                {
                    if (Guid.TryParse(urlFilter, out Guid entityId))
                    {
                        id = entityId;
                    }
                }

                var form = await BusinessFlow.GetForm(name, id);

                if (form != null)
                {
                    return(await GetForm(form, true, true));
                }

                return(Json(new FailResponse("The form is not found for this BusinessFlow!")));
            }
            catch (Exception e)
            {
                return(Json(new FailResponse(e)));
            }
        }