Esempio n. 1
0
        public void Update(ObjectId id, FeedingReminder p)
        {
            p.Id = id;
            var res = Query <FeedingReminder> .EQ(pd => pd.Id, id);

            var operation = Update <FeedingReminder> .Replace(p);

            _db.GetCollection <FeedingReminder>("Feedings_Reminders").Update(res, operation);
        }
Esempio n. 2
0
        public FeedingReminder Create(FeedingReminder p)
        {
            _db.GetCollection <FeedingReminder>("Feedings_Reminders").Save(p);

            return(p);
        }