public IActionResult GetDiffInvestment([FromQuery] int unitId, [FromQuery] DateTimeOffset dueDate) { try { VerifyUser(); var result = _service.GetDiffInvestingActivitiesByUnit(unitId, dueDate); return(Ok(new { apiVersion = ApiVersion, statusCode = General.OK_STATUS_CODE, message = General.OK_MESSAGE, data = result })); } catch (Exception e) { return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, e.Message + " " + e.StackTrace)); } }