Example #1
0
        public GetPersonResult GetPerson(GetPersonRequest request)
        {
            if (request != null && request.Id == Guid.Empty)
            {
                throw new FaultException<GeneralFault>(new GeneralFault{Message = "This is the message.", StatusCode = 404, StatusDescription = "PersonNotFound"});
            }

            return new GetPersonResult {Person = new Person {Id = request.Id, FirstName = "Todd", LastName = "Meinershagen"}};
        }
Example #2
0
        public GetPersonResult GetPerson(GetPersonRequest request)
        {
            if (request != null && request.Id == Guid.Empty)
            {
                throw new FaultException <GeneralFault>(new GeneralFault {
                    Message = "This is the message.", StatusCode = 404, StatusDescription = "PersonNotFound"
                });
            }

            return(new GetPersonResult {
                Person = new Person {
                    Id = request.Id, FirstName = "Todd", LastName = "Meinershagen"
                }
            });
        }