Пример #1
0
        virtual public CommonResponse Unfinalize([FromBody] string value)
        {
            CommonResponse response = new CommonResponse();
            Document       entity;

            try
            {
                entity = JsonConvert.DeserializeObject <Document>(value);
                return(logic.Unfinalize(entity));
            }
            catch (Exception e)
            {
                return(response.Error("ERROR: " + e.ToString()));
            }
        }
Пример #2
0
        virtual public CommonResponse Unfinalize([FromBody] string value)
        {
            CommonResponse response = new CommonResponse();
            Document       entity;

            try
            {
                entity = JsonConvert.DeserializeObject <Document>(value);
                return(logic.Unfinalize(entity));
            }
            catch (Exception e)
            {
                var originalException = GetOriginalException(e);
                return(response.Error("Error " + originalException.Message));
            }
        }