Ejemplo n.º 1
0
        public async Task AddAsync(TEntity entity)
        {
            var dao = DaoMapper.Map(entity);
            await Table.AddAsync(dao);

            await Context.SaveChangesAsync();

            SetId(entity, dao);
        }
        public async Task AddAsync(Group entity)
        {
            var dao = _groupMapper.Map(entity);
            await _context.Groups.AddAsync(dao);

            await _context.SaveChangesAsync();

            entity.GroupId = dao.GroupId;
        }