public static void AddRecommendedLog(int userId, int productId, RecommendedChangeSourceEnum type, decimal price, DateTime recomDate) { RecommendedLog rl = new RecommendedLog(); rl.LogDate = DateTime.Now; rl.LogType = (int) type; rl.Price = price; rl.UserId = userId; rl.ProductId = productId; rl.RecomDate = recomDate; CanonDataContext db = Cdb.Instance; db.RecommendedLogs.InsertOnSubmit(rl); db.SubmitChanges(); }
public static void AddRecommendedLog(int userId, int productId, RecommendedChangeSourceEnum type, decimal price, DateTime recomDate) { RecommendedLog rl = new RecommendedLog(); rl.LogDate = DateTime.Now; rl.LogType = (int)type; rl.Price = price; rl.UserId = userId; rl.ProductId = productId; rl.RecomDate = recomDate; CanonDataContext db = Cdb.Instance; db.RecommendedLogs.InsertOnSubmit(rl); db.SubmitChanges(); }