Exemplo n.º 1
0
        public void RemovePosition(DomainItem item, uint count)
        {
            DomainBillPosition position = positions.Find(o => o.Item.Id == item.Id);

            if (position != null)
            {
                position.Remove(count);
            }
        }
Exemplo n.º 2
0
        public void UpdatePosition(DomainBillPosition other)
        {
            DomainBillPosition position = positions.Find(o => o.Id == other.Id);

            if (position != null)
            {
                position.Update(other);
            }
            else
            {
                positions.Add(other);
            }
        }
Exemplo n.º 3
0
        public void UpdatePosition(DomainItem item, uint count)
        {
            DomainBillPosition position = positions.Find(o => o.Item.Id == item.Id);

            if (position != null)
            {
                position.Add(count);
            }
            else
            {
                positions.Add(new DomainBillPosition(0, item, count));
            }
        }
Exemplo n.º 4
0
        public bool RemovePosition(DomainBillPosition other)
        {
            DomainBillPosition position = positions.Find(o => o.Id == other.Id);

            return((position != null) ? positions.Remove(position) : false);
        }