public ActionResult Find(FormCollection Collection)
        {
            string        Keyword = Collection["Keyword"];
            List <Doctor> Result;

            try
            {
                // TODO: Add insert logic here
                Result = Service.Find(Keyword);
                if (Result == null)
                {
                    return(View("NotFound"));
                }
                if (Result.Count == 1)
                {
                    return(RedirectToAction("Edit", "Doctor", new { id = Result[0].Id }));
                }
                if (Result.Count > 1)
                {
                    return(View("FindResult", Result));
                }
                //return RedirectToAction("DoctorsFound", "Doctor", new { Models = Result});

                return(View("NotFound"));
            }
            catch
            {
                return(View("NotFound"));
            }
        }
 public IActionResult FindDoctors(IEnumerable <int> doctorIds)
 {
     return(Ok(_doctorService.Find(doctorIds)));
 }