public static Occasion AddOccasion(Occasion occ) { MongoDBContext dbContext = new MongoDBContext(); occ.Id = Guid.NewGuid().ToString(); dbContext.Occasions.InsertOne(occ); return(occ); }
internal static Occasion AddNew( DateTime date, List <Person> persons, string Notes, OccasionType type) { Occasion theNewOccasion = new Occasion(); return(theNewOccasion); }
internal static Occasion GetById(string id) { Occasion theOcc = new Occasion(); return(theOcc); }