public static void Main(string[] args) { DayOfWeekServiceClient client = new DayOfWeekServiceClient(); Console.WriteLine(client.GetDayName(DateTime.Now.AddDays(1))); client.Close(); }
static void Main() { DayOfWeekServiceClient client = new DayOfWeekServiceClient(); var day = client.GetDayOfWeek(DateTime.Now); Console.WriteLine(day); // Always close the client. client.Close(); }