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)); }
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(); }
public Customer(GenieLamp.Examples.QuickStart.Services.Interfaces.QuickStart.CustomerDTO dto) : base(dto) { }