public async Task <ActionResult> RemoveProperty(Guid client, string key) { var clients = await _apiResourceRepository.GetAsync(client, true); var property = clients.Properties.FirstOrDefault(x => x.Key == key); clients.RemoveProperty(key); await _mateupDbContext.SaveChangesAsync(); return(Ok()); }
public async Task <ActionResult> Remove(string id) { await _persistentGrantRepository.DeleteAsync(id); await _mateupDbContext.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult> RemoveSecret(Guid client, string type, string value) { var clients = await _clientRepository.GetAsync(client, true); clients.RemoveSecret(value, type); await _mateupDbContext.SaveChangesAsync(); return(Ok()); }