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())); } }
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)); } }