コード例 #1
0
        public Task <int> Add(AttendeeModel attendee)
        {
            var entity = Attendee.FromModel(attendee);

            dbContext.Attendees.Add(entity);
            return(dbContext.SaveChangesAsync());
        }