예제 #1
0
 /// <summary>
 /// Remove Role-menus.
 /// </summary>
 /// <param name="RolesMenus">RolesMenus class
 public async Task Remove(RolesMenus rolesMenus)
 {
     _context.RolesMenus.Remove(rolesMenus);
     await _context.SaveChangesAsync();
 }
예제 #2
0
        public async Task AddRolesMenusAsync(RolesMenus rolesMenus)
        {
            await _context.RolesMenus.AddAsync(rolesMenus);

            await _context.SaveChangesAsync();
        }