Exemple #1
0
        public async void onFormLoad()
        {
            List <String> statistics = await dataModel.getStatistics();

            if (currentUser.userType == UserTypes.EMPLOYER)
            {
                mView.showEmployerStatus(statistics[0], statistics[1]);
            }
            else
            {
                mView.showWorkerStatus(statistics[0], statistics[1], statistics[2]);
                var jobPosts = await dataModel.getAllJobs(1);

                if (jobPosts != null)
                {
                    mView.showJobPosts(jobPosts);
                }
            }
        }