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