public static void AddAvailability(string day, string daytime, int userid) { //Call Availability class to add Availability av = new Availability(userid, day, daytime); av.Add(); }
/// <summary> /// Adds availability to the main user /// </summary> /// <param name="av">The details of the availability</param> /// <param name="message">The message of the error</param> /// <returns></returns> public bool AddAvailability(Availabilitydetails av, out string message) { Availability a = new Availability(MainUser.ID, av.Day, av.Daytime); a.Add(); message = "Availability added"; return true; }