Пример #1
0
 public bool voteRecipe(RecipeEN recipe, int vote)
 {
     UserCAD u = new UserCAD();
     return u.VoteRecipe(this, recipe, vote);
 }
Пример #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);
 }
Пример #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);
 }
Пример #4
0
 public UserEN Read()
 {
     UserCAD user = new UserCAD();
     return user.Read(this);
 }
Пример #5
0
 // Creates a new user
 public bool InsertUser()
 {
     UserCAD u = new UserCAD();
     return u.InsertUser(this);
 }
Пример #6
0
 public bool Comment(RecipeEN recipe, CommentEN comment)
 {
     UserCAD u = new UserCAD();
     return u.Comment(this, recipe, comment);
 }
Пример #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);
 }
Пример #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);
 }