public JsonResult CutMaintenanceFee([FromQuery] string StartDate, [FromQuery] string EndDate, [FromQuery] string ProdId, [FromQuery] int ManId, [FromQuery] int NIK, [FromQuery] string GUID) { bool blnResult = false; string ErrMsg = ""; DateTime dtStartDate = new DateTime(); DateTime dtEndDate = new DateTime(); DateTime.TryParseExact(StartDate, "dd'/'MM'/'yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dtStartDate); DateTime.TryParseExact(EndDate, "dd'/'MM'/'yyyy", CultureInfo.InvariantCulture, DateTimeStyles.None, out dtEndDate); blnResult = cls.ReksaCutMtncFee(dtStartDate, dtEndDate, ProdId, ManId, NIK, GUID, out ErrMsg); ErrMsg = ErrMsg.Replace("ReksaCutMtncFee - Core .Net SqlClient Data Provider\n", ""); return(Json(new { blnResult, ErrMsg })); }