Exemplo n.º 1
0
        //create activity log
        public void activity(int accID, int movieID, DateTime time)
        {
            activitylog al  = new activitylog();
            movie       mov = new movie();

            mov = wfDB.movies.Find(movieID);

            al.Account_ID  = accID;
            al.Description = "You commented on " + mov.title + " at " + time;

            insertActivity(al);
        }
Exemplo n.º 2
0
 //insert activity log
 public void insertActivity(activitylog act)
 {
     wfDB.activitylogs.Add(act);
     wfDB.SaveChanges();
 }