Exemplo n.º 1
0
        /// <summary>
        /// Gets a list of employees with their annual salary
        /// </summary>
        /// <returns>List of employees with annual salaries</returns>
        public async Task <List <EmployeeSalary> > GetSalary()
        {
            try
            {
                List <Api> apis = await apiDAO.Get();

                List <EmployeeSalary> list = GetEmployees(apis);

                return(list);
            }
            catch (Exception)
            {
                throw new Exception();
            }
        }
Exemplo n.º 2
0
        static async Task Main()
        {
            ApiDAO colocarTabela = new ApiDAO();

            var api = colocarTabela.Get(1);

            Console.WriteLine("API BUSCADA: " + api.Name + "\n");

            await MonitoringApi(api.EndPoint, new Correios());
        }
Exemplo n.º 3
0
        static async Task Main()
        {
            // Api apiToInsert = new Api{
            //     Name = "",
            //     EndPoint = "",
            //     Type = 1 || 2
            // };

            // new ApiDAO().Insert(apiToInsert);

            ApiDAO getApi = new ApiDAO();

            var api = getApi.Get(1);

            Console.WriteLine("API BUSCADA: " + api.Name + "\n");

            await MonitoringApi(api, new Correios());
        }