Example #1
0
        public bool IsFavouritesUsers(ApplicationUserDTO userDTO)
        {
            var isFavourite = FavouritesUsers.
                              Where(user => user.Id.Equals(userDTO.Id)).
                              Select(u => u.Id).
                              FirstOrDefault();

            return(isFavourite == null ? false : true);
        }
Example #2
0
 public void RemoveFromPrivateAssignedUsers(ApplicationUserDTO user)
 {
     PrivateAssignedUsers.Remove(user);
     SaveQuiz(this);
 }
Example #3
0
 public void AddToPrivateAssignedUsers(ApplicationUserDTO user)
 {
     PrivateAssignedUsers.Add(user);
     SaveQuiz(this);
 }
Example #4
0
 public void RemoveFromFavouritesUsers(ApplicationUserDTO user)
 {
     FavouritesUsers.Remove(user);
     SaveQuiz(this);
 }
Example #5
0
 public void AddToFavouritesUsers(ApplicationUserDTO user)
 {
     FavouritesUsers.Add(user);
     SaveQuiz(this);
 }