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