コード例 #1
0
        public async Task <IActionResult> LawyerProfile1(int id)
        {
            // AVM.AppointmentList = _context.Appointments.Where(a=>a.LawyerId==id).ToList();
            //var lawyerProfile = await _lawyerService.LawyerProfile(id);

            AVM.AppointmentList = await _context.Appointments.Include(x => x.Lawyer).Where(l => l.LawyerId == id).ToListAsync();

            AVM.LawyerList = await _lawyerService.LawyerProfile1(id);

            // var lawyerProfile = await _context.Appointments.Include(x=>x.Lawyer).Where(l=>l.LawyerId == id).ToListAsync();
            return(View(AVM));
        }