Exemple #1
0
        public async Task Add(MenuRequestDTO menu)
        {
            var entity = mapper.Map <Menu>(menu);

            entity.MenuId    = Guid.NewGuid().ToString();
            entity.keepAlive = true;
            entity.Target    = string.Empty;
            await a35Mgedbcontext.AddAsync(entity);

            await a35Mgedbcontext.SaveChangesAsync();
        }
Exemple #2
0
        public async Task AddLanguageType(LanguageTypeDTO language)
        {
            var entity = mapper.Map <LanguageType>(language);
            await a35MgeDbContext.AddAsync(entity);

            await a35MgeDbContext.SaveChangesAsync();
        }