Commit 5d532b56 authored by datdiep's avatar datdiep

fix

parent 8a7d678c
......@@ -53,6 +53,8 @@ namespace UF.AssessmentProject.Controllers
public ActionResult<Model.Transaction.ResponseMessage> SubmitTRansaction(Model.Transaction.RequestMessage req)
{
try {
const string PATH = "/api/SubmitTRansaction";
Model.Transaction.ResponseMessage results = new Model.Transaction.ResponseMessage();
results.success = 0;
// Your Code here
......@@ -60,16 +62,15 @@ namespace UF.AssessmentProject.Controllers
results = _homeProvider.Validate(req);
//_logger.LogInformation(Request.Path.ToString() + "\r\nRequest = " + JsonConvert.SerializeObject(req));
if (results.success == DataDictionary.responseResult.failed)
{
_logger.LogError(PATH + "\r\nResponse =" + JsonConvert.SerializeObject(results));
}
else
{
_logger.LogInformation(PATH + "\r\nResponse =" + JsonConvert.SerializeObject(results));
}
//if (results.success == DataDictionary.responseResult.failed)
//{
// _logger.LogError(Request.Path.ToString() + "\r\nResponse =" + JsonConvert.SerializeObject(results));
//}
//else
//{
// _logger.LogInformation(Request.Path.ToString() + "\r\nResponse =" + JsonConvert.SerializeObject(results));
//}
return Ok(results);
}
catch (Exception ex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment