Exemple #1
0
 public bool voteRecipe(RecipeEN recipe, int vote)
 {
     UserCAD u = new UserCAD();
     return u.VoteRecipe(this, recipe, vote);
 }
Exemple #2
0
 // Returns a list with the recipes that a user have done
 public List<RecipeEN> RecipesUser()
 {
     UserCAD u = new UserCAD();
     return u.RecipesUser(this);
 }
Exemple #3
0
 // Returns TRUE is the the validation of a user is correct, FALSE in other case
 public bool ValidationUser()
 {
     UserCAD u = new UserCAD();
     return u.ValidationUser(this.email, this.password);
 }
Exemple #4
0
 public UserEN Read()
 {
     UserCAD user = new UserCAD();
     return user.Read(this);
 }
Exemple #5
0
 // Creates a new user
 public bool InsertUser()
 {
     UserCAD u = new UserCAD();
     return u.InsertUser(this);
 }
Exemple #6
0
 public bool Comment(RecipeEN recipe, CommentEN comment)
 {
     UserCAD u = new UserCAD();
     return u.Comment(this, recipe, comment);
 }
Exemple #7
0
 // Returns TRUE if the nick is already in use, FALSE in other case
 public bool CheckNick()
 {
     UserCAD u = new UserCAD();
     return u.CheckNick(nick);
 }
Exemple #8
0
 // Returns TRUE if the email is already use, FALSE in other case
 public bool CheckEmail()
 {
     UserCAD u = new UserCAD();
     return u.CheckEmail(email);
 }