Esempio n. 1
0
        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());
        }
Esempio n. 3
0
        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());
        }