public async Task <int> DeleteByIdAsync(int id) { var user = await _context .Users .FindAsync(id); _context.Users.Remove(user); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int userId, int gameId) { var library = await _context .Libraries .FindAsync(userId, gameId); _context.Libraries.Remove(library); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int userId, int gameId) { var review = await _context .Reviews .FindAsync(userId, gameId); _context.Reviews.Remove(review); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int userId, int gameId) { var purchase = await _context .Purchases .FindAsync(userId, gameId); _context.Purchases.Remove(purchase); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int id) { var tag = await _context .Tags .FindAsync(id); _context.Tags.Remove(tag); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int gameId, int tagId) { var gameTag = await _context .GameTags .FindAsync(gameId, tagId); _context.GameTags.Remove(gameTag); return(await _context.SaveChangesAsync()); }
public async Task <int> DeleteByIdAsync(int id) { var company = await _context .Companies .FindAsync(id); _context.Companies.Remove(company); return(await _context.SaveChangesAsync()); }