public ShippingState(Reserve res) { this.type = GetTypeForReserve(res); if (this.type == ShippingStates.Etc) { var si = DBAccessor.Instance.GetShipping(res); this.state = (from a in DBAccessor.Instance.ItemStates where a.ItemStateCode == si.State select a).FirstOrDefault(); } }
public ShippingState(string flag) { this.type = GetTypeForDBValue(flag); }
public ShippingState(ShippingStates v) { this.type = v; }