Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Beispiel #1
0
 public void Add(Seen seen)
 {
     Seen tempSeen = GetSeen(seen.MovieID, seen.UserID);
     if (tempSeen == null)
     {
         SeenMovies.Add(seen.MovieID);
     }
 }
Beispiel #2
0
 //Insert/Delete
 public void Add(Seen seen)
 {
     Seen tempSeen = GetSeen(seen.MovieID, seen.UserID);
     if (tempSeen == null)
     {
         db.Seens.InsertOnSubmit(seen);
     }
 }
Beispiel #3
0
        public ActionResult SeenMovie(int id)
        {
            Seen seen = new Seen();
            seen.MovieID = id;
            seen.UserID = User.Identity.Name;

            _seenRepository.Add(seen);
            _seenRepository.Save();

            BadgeRepository badgeRepository = new BadgeRepository();
            badgeRepository.CheckForBadges(User.Identity.Name);

            return Content("Got it!");
        }
Beispiel #4
0
		private void detach_Seens(Seen entity)
		{
			this.SendPropertyChanging();
			entity.Movie = null;
		}
Beispiel #5
0
		private void attach_Seens(Seen entity)
		{
			this.SendPropertyChanging();
			entity.Movie = this;
		}
Beispiel #6
0
 partial void DeleteSeen(Seen instance);
Beispiel #7
0
 partial void UpdateSeen(Seen instance);
Beispiel #8
0
 partial void InsertSeen(Seen instance);
Beispiel #9
0
 public void Delete(Seen seen)
 {
     if (SeenMovies.Contains(seen.ID))
         SeenMovies.Remove(seen.ID);
 }
Beispiel #10
0
 public void Delete(Seen seen)
 {
     db.Seens.DeleteOnSubmit(seen);
 }