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