public bool voteRecipe(RecipeEN recipe, int vote) { UserCAD u = new UserCAD(); return u.VoteRecipe(this, recipe, vote); }
// Returns a list with the recipes that a user have done public List<RecipeEN> RecipesUser() { UserCAD u = new UserCAD(); return u.RecipesUser(this); }
// 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); }
public UserEN Read() { UserCAD user = new UserCAD(); return user.Read(this); }
// Creates a new user public bool InsertUser() { UserCAD u = new UserCAD(); return u.InsertUser(this); }
public bool Comment(RecipeEN recipe, CommentEN comment) { UserCAD u = new UserCAD(); return u.Comment(this, recipe, comment); }
// Returns TRUE if the nick is already in use, FALSE in other case public bool CheckNick() { UserCAD u = new UserCAD(); return u.CheckNick(nick); }
// Returns TRUE if the email is already use, FALSE in other case public bool CheckEmail() { UserCAD u = new UserCAD(); return u.CheckEmail(email); }