Example #1
0
        public async Task <Announcement> Create(AnnouncementCreate announcementIn)
        {
            var announcement = Announcement.FromCreate(announcementIn);
            await _announcements.InsertOneAsync(announcement);

            return(announcement);
        }