virtual public CommonResponse Finalize([FromBody] string value) { CommonResponse response = new CommonResponse(); Document entity; try { entity = JsonConvert.DeserializeObject <Document>(value); return(logic.Finalize(entity)); } catch (Exception e) { return(response.Error("ERROR: " + e.ToString())); } }
virtual public CommonResponse Finalize([FromBody] string value) { CommonResponse response = new CommonResponse(); Document entity; try { entity = JsonConvert.DeserializeObject <Document>(value); return(logic.Finalize(entity)); } catch (Exception e) { var originalException = GetOriginalException(e); return(response.Error("Error " + originalException.Message)); } }