Beispiel #1
0
        public async Task <IActionResult> Post([FromBody] Process request)
        {
            try
            {
                Guid versionId = Guid.Empty;
                if (request.VersionId == null || request.VersionId == Guid.Empty)
                {
                    versionId = Guid.NewGuid();
                }
                else
                {
                    versionId = request.VersionId;
                }
                manager.AssignProcessProperties(request, versionId);

                var response = await base.PostEntity(request);

                return(response);
            }
            catch (Exception ex)
            {
                return(ex.GetActionResult());
            }
        }