예제 #1
0
        public Stream GetEmployee()
        {
            string json = Core.Services.RestPublisher.Serialize(EmployeeFacade.LoadEmployee2());

            WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8";
            MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json));

            return(ms);
        }