public static void RemoveSkill(string skill, int userid) { //Call Skill class to remove Skill s = new Skill(userid, skill); s.Remove(); }
/// <summary> /// Removes a skill from the main user /// </summary> /// <param name="name">The name of the skill</param> /// <param name="message">The message of the error</param> /// <returns>Success</returns> public bool RemoveSkill(string name, out string message) { Skill s = new Skill(MainUser.ID, name); s.Remove(); message = "Skill removed"; return true; }
/// <summary> /// Inserts skills for specified account /// </summary> /// <param name="skill">The skill to insert</param> /// <param name="userid">The ID of the account</param> public static void AddSkill(string skill, int userid) { //Call Skill class to add Skill s = new Skill(userid, skill); s.Add(); }
/// <summary> /// Adds a skill to the main user /// </summary> /// <param name="name">The name of the skill</param> /// <param name="message">The message of the error</param> /// <returns>Success</returns> public bool AddSkill(string name, out string message) { Skill s = new Skill(MainUser.ID, name); s.Add(); message = "Skill added"; return true; }