예제 #1
0
        public ResponsePatients GetAll(string parentId)
        {
            ResponsePatients ans = null;

            try
            {
                if (ValidateSecurityAPI())
                {
                    ans = PatientModel.GetAll(parentId);
                }
                else
                {
                    ans = new ResponsePatients()
                    {
                        IsSuccessful = false, ResponseMessage = AppManagement.MSG_API_Validation_Failure
                    };
                }
            }
            catch (Exception ex)
            {
                ans = new ResponsePatients()
                {
                    IsSuccessful = false, ResponseMessage = AppManagement.MSG_GenericExceptionError
                };
            }

            return(ans);
        }