コード例 #1
0
        public ResponseParent GetParent(string identification)
        {
            ResponseParent ans = null;

            try
            {
                if (ValidateSecurityAPI())
                {
                    ans = ParentModel.GetParent(identification);
                }
                else
                {
                    ans = new ResponseParent()
                    {
                        IsSuccessful = false, ResponseMessage = AppManagement.MSG_API_Validation_Failure
                    };
                }
            }
            catch (Exception ex)
            {
                ans = new ResponseParent()
                {
                    IsSuccessful = false, ResponseMessage = AppManagement.MSG_GenericExceptionError
                };
            }

            return(ans);
        }