public async Task <IActionResult> SearchLawyers(string filter)

        {
            if (filter == "TotalLawyers" || filter == null)
            {
                var Lawyers = await _lawyerService.GetAllLawyers();

                ViewBag.Filter = "All Lawyers";
                return(View(Lawyers));
            }
            else if (filter == "OnlineLawyers")
            {
                var Lawyers = await _lawyerService.GetOnlineLawyers();

                ViewBag.Filter = "Online Lawyers";
                return(View(Lawyers));
            }
            else if (filter == "OfflineLawyers")
            {
                var Lawyers = await _lawyerService.GetOfflineLawyers();

                ViewBag.Filter = "Offline Lawyers";
                return(View(Lawyers));
            }
            return(View());
        }