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