Exemplo n.º 1
0
        public async Task <bool> Delete(int id)
        {
            var device = await GetObjectById(id);

            Context.Remove(device);
            return(true);
        }
Exemplo n.º 2
0
        public async Task <bool> Delete(int id)
        {
            var user = await Context.Users.FirstOrDefaultAsync(x => x.Id == id);

            Context.Remove(user);
            return(true);
        }