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