public void AddReceiving(Receiving receiving) { if (receiving != null) { Receivings.Add(receiving); } }
public bool TransferReceiving(Receiving receiving, DateTime dateReceiving) { if (receiving != null && dateReceiving.CompareTo(receiving.DateReceiving) > 1) { receiving.DateReceiving = dateReceiving; return true; } return false; }