示例#1
0
        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 });
            }
        }
示例#2
0
        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 };
            }
        }