public async Task UpdateAsync(Role role) { Context.Entry<Role>(role).State = EntityState.Modified; await Context.SaveChangesAsync(); }
public async Task CreateAsync(Role role) { Context.Roles.Add(role); await Context.SaveChangesAsync(); }