public static object UpdateCountryLimit(SessionInfo sessioninfo, MA_COUNTRY_LIMIT record) { try { CountryBusiness _countryBusiness = new CountryBusiness(); if (!record.FLAG_CONTROL) { record.AMOUNT = 0; record.EFFECTIVE_DATE = sessioninfo.Process.CurrentDate; record.EXPIRY_DATE = sessioninfo.Process.CurrentDate; } record.LOG.MODIFYBYUSERID = sessioninfo.CurrentUserId; record.LOG.MODIFYDATE = DateTime.Now; var updateRecord = _countryBusiness.UpdateCountryLimit(sessioninfo, record); return(new { Result = "OK", Record = updateRecord }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }