Пример #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));
 }