Exemplo n.º 1
0
        /// <summary>
        /// Geth a list of services
        /// </summary>
        /// <param name="unitId"></param>
        /// <returns></returns>
        public static List <Service> GetListServices(int unitId)
        {
            List <Service> listServices     = new List <Service>();
            List <string>  listServicesName = new List <string>();

            WebAppoinmentsClientLibrary.Appoinments appoinment = new WebAppoinmentsClientLibrary.Appoinments();
            listServices = appoinment.GetServices(unitId);
            return(listServices);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This method returns a list of availables appoinments (Example)
        /// </summary>
        /// <returns></returns>
        public static async Task <List <string> > GetServices()
        {
            List <Service> listServices     = new List <Service>();
            List <string>  listServicesName = new List <string>();

            WebAppoinmentsClientLibrary.Appoinments appoinment = new WebAppoinmentsClientLibrary.Appoinments();
            listServices = appoinment.GetServices(1);
            foreach (Service service in listServices)
            {
                listServicesName.Add(service.Name);
            }
            return(listServicesName);
        }