コード例 #1
0
 public static Customer GetByCode(string code)
 {
     GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.CustomerDTO dto = WebClientFactory.GetJsonClient()
                                                                                    .Get <GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.CustomerResponse>(String.Format("/CustomerService/Code/{0}", code))
                                                                                    .CustomerDTO;
     return(dto == null ? null : new Customer(dto));
 }
コード例 #2
0
            public virtual void Refresh()
            {
                Customer o = Customer.GetById(this.Id);

                this.DTO = o != null && o.DTO != null ? o.DTO : new GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.CustomerDTO();
            }
コード例 #3
0
 public Customer(GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.CustomerDTO dto) : base(dto)
 {
 }