コード例 #1
0
        public static Occasion AddOccasion(Occasion occ)
        {
            MongoDBContext dbContext = new MongoDBContext();

            occ.Id = Guid.NewGuid().ToString();
            dbContext.Occasions.InsertOne(occ);
            return(occ);
        }
コード例 #2
0
        internal static Occasion AddNew(
            DateTime date,
            List <Person> persons,
            string Notes,
            OccasionType type)
        {
            Occasion theNewOccasion = new Occasion();

            return(theNewOccasion);
        }
コード例 #3
0
        internal static Occasion GetById(string id)
        {
            Occasion theOcc = new Occasion();

            return(theOcc);
        }