示例#1
0
 public static void AddAvailability(string day, string daytime, int userid)
 {
     //Call Availability class to add
     Availability av = new Availability(userid, day, daytime);
     av.Add();
 }
示例#2
0
 /// <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;
 }