public async Task Delete(int id) { _context.Entry(await GetById(id)).State = EntityState.Deleted; await Save(); }