public static object CreateSpotRate(SessionInfo sessioninfo, MA_SPOT_RATE record) { try { LookupBusiness _lookupbusiness = new LookupBusiness(); record.ID = Guid.NewGuid(); var added = _lookupbusiness.CreateSpotRate(sessioninfo, record); return(new { Result = "OK", Record = added }); } catch (Exception ex) { return(new { Result = "ERROR", Message = ex.Message }); } }
public static object CreateSpotRate(SessionInfo sessioninfo, MA_SPOT_RATE record) { try { LookupBusiness _lookupbusiness = new LookupBusiness(); record.ID = Guid.NewGuid(); var added = _lookupbusiness.CreateSpotRate(sessioninfo, record); return new { Result = "OK", Record = added }; } catch (Exception ex) { return new { Result = "ERROR", Message = ex.Message }; } }