예제 #1
0
        public Stream GetCustomer(Core.Model.mdlCustomerParam param)
        {
            string json = Core.Services.RestPublisher.Serialize(CustomerFacade.LoadCustomer(param));

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

            return(ms);
        }
예제 #2
0
 public Core.Model.mdlResultSvc UploadCustomer(Core.Model.mdlCustomerParam param)
 {
     return(CustomerFacade.UploadCustomer(param));
 }
예제 #3
0
 public Core.Model.mdlResultSvc DeleteCustomer(Core.Model.mdlCustomerParam param)
 {
     return(CustomerFacade.DeleteCustomer(param.CustomerID));
 }