Beispiel #1
0
        public void AddPriceProposal(Thread thread, PriceProposal priceProposal)
        {
            priceProposal.SetDatesToNow();

            thread.PriceProposals.Add(priceProposal);
            thread.UpdateModificationDate();
            Update(thread);
        }
Beispiel #2
0
        public void DeletePriceProposal(PriceProposal priceProposal)
        {
            var thread = priceProposal.Thread;

            Db.PriceProposals.Remove(priceProposal);
            Db.SaveChanges();

            Update(thread);
        }