Example #1
0
        public IActionResult GetHealth(string patientcode = "")
        {
            List <GetHealth> list = _bll.GetHealth(patientcode);

            if (!string.IsNullOrEmpty(patientcode) && patientcode != "")
            {
                list = list.Where(s => s.PatientCode.Equals(patientcode)).ToList();
            }
            return(Ok(new { data = list }));
        }