CCN.Modules.Car.DataAccess.CarDataAccess.AddRecommendCar C# (CSharp) Method

AddRecommendCar() public method

添加推荐车源
public AddRecommendCar ( dynamic model ) : int
model dynamic
return int
        public int AddRecommendCar(dynamic model)
        {
            const string sql = @"INSERT INTO cust_site_recommendcar
                        (innerid, custid, carid, createdtime, modifiedtime)
                        VALUES (@innerid, @custid, @carid, @createdtime, @modifiedtime);";

            try
            {
                Helper.Execute(sql, model);
                return 1;
            }
            catch (Exception ex)
            {
                LoggerFactories.CreateLogger().Write("添加推荐车源异常:", TraceEventType.Error, ex);
                return 0;
            }
        }
CarDataAccess