Exemplo n.º 1
0
        /// <summary>
        /// Present the lawyer with their potential clients, library choices, schedules, and options to match
        /// with potential clients, change their libraries, and to modify their schedule.
        /// </summary>
        public async Task OnGetAsync()
        {
            Lawyer = await _lawyerService.GetLawyerByPrincipalAsync(User);

            Libraries = await _libraryService.GetAllLibrariesForLawyerAsync(Lawyer.ApplicationUserId);

            Schedules = await _lawyerService.GetSchedulesAsync(Lawyer.ApplicationUserId);

            PotentialClients = await _veteranService.GetPotentialClientsForLawyerAsync(Lawyer.ApplicationUserId);

            Matches = await _matchService.GetMatchesAsync();

            // TODO(taylorjoshuaw): Collect time zone from user rather than assuming Pacific time
            UserTimeZone = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
        }