public JsonResult CekExpRiskProfile([FromQuery] string DateRiskProfile, [FromQuery] long CIFNo) { bool blnResult; string ErrMsg; DateTime dtExpiredRiskProfile; string strEmail; DateTime dtRiskProfile = new DateTime(); DateTime.TryParseExact(DateRiskProfile, "dd'/'MM'/'yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dtRiskProfile); blnResult = cls.ReksaCekExpRiskProfile(dtRiskProfile, CIFNo, out dtExpiredRiskProfile, out strEmail, out ErrMsg); ErrMsg = ErrMsg.Replace("ReksaCekExpRiskProfile - Core .Net SqlClient Data Provider\n", ""); return(Json(new { blnResult, ErrMsg, dtExpiredRiskProfile, strEmail })); }