Ejemplo n.º 1
0
        public ActionResult ActivePatientTopBarSearch(string mobileNumber, int PatientID = 0)
        {
            if (mobileNumber == string.Empty && PatientID == 0)
            {
                return(View());
            }
            try
            {
                int patientID = patientRepository.getPatientIDSearchResultByMobileOrID(PatientID, mobileNumber);
                if (patientID != 0)
                {
                    sessionStateManger.setSecyrtaryActivePatinet(User.Identity.GetUserId(), patientID);

                    ViewBag.Msg = "Patient Findes";
                }

                else
                {
                    ViewBag.Msg = "Could Not Find this Patient";
                }

                return(View());
            }
            catch
            {
                return(View());
            }
        }