public static object UpdateLimit(SessionInfo sessioninfo, MA_LIMIT record) { try { LookupBusiness _lookupbusiness = new LookupBusiness(); record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE ? false : true; record.LABEL = record.LABEL; record.LIMIT_TYPE = record.LIMIT_TYPE; record.INDEX = record.INDEX; var updated = _lookupbusiness.UpdateLimit(sessioninfo, record); return(new { Result = "OK" }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }
public static object UpdateLimit(SessionInfo sessioninfo, MA_LIMIT record) { try { LookupBusiness _lookupbusiness = new LookupBusiness(); record.ISACTIVE = record.ISACTIVE == null || !record.ISACTIVE ? false : true; record.LABEL = record.LABEL; record.LIMIT_TYPE = record.LIMIT_TYPE; record.INDEX = record.INDEX; var updated = _lookupbusiness.UpdateLimit(sessioninfo, record); return new { Result = "OK" }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }