public JsonResult GetPatientById(int nidpatient)
        //public async Task<IActionResult> SaveDoctor([FromBody] Doctor request)
        {
            var result = _businessPatient.FindPatientById(nidpatient).Result;

            result.SFIRSTNAME  = (CultureInfo.InvariantCulture.TextInfo.ToTitleCase(result.SFIRSTNAME));
            result.SSECONDNAME = (CultureInfo.InvariantCulture.TextInfo.ToTitleCase(result.SSECONDNAME));
            result.SLASTNAME   = (CultureInfo.InvariantCulture.TextInfo.ToTitleCase(result.SLASTNAME));
            result.SLASTNAME1  = (CultureInfo.InvariantCulture.TextInfo.ToTitleCase(result.SLASTNAME1));

            result.SCOMPLETENAME = string.Format("{0} {1}{2} {3}", result.SFIRSTNAME, result.SSECONDNAME == string.Empty ? "" : result.SSECONDNAME + " ", result.SLASTNAME, result.SLASTNAME1);

            string pathServer    = Path.Combine(_env.WebRootPath, "Files", "Patient");
            string fullPathImage = string.Format("{0}/{1}", pathServer, result.SPATHIMAGE);

            if (System.IO.File.Exists(fullPathImage))
            {
                Byte[] bytes = System.IO.File.ReadAllBytes(fullPathImage);
                result.base64Image = Convert.ToBase64String(bytes);
            }
            return(Json(new
            {
                patient = result
            }));
        }