public async Task <bool> DeleteAsync(int entityId) { var fileInfo = new FileInfo { FileInfoId = entityId }; _context.Remove(fileInfo); var affectedRows = await _context.SaveChangesAsync(); return(affectedRows > 0); }
public async Task <bool> DeleteAsync(int entityId) { var genre = new Genre { GenreId = entityId }; _context.Remove(genre); var affectedRows = await _context.SaveChangesAsync(); return(affectedRows > 0); }
public async Task <bool> DeleteAsync(int entityId) { var movie = new Movie { MovieId = entityId }; _context.Remove(movie); var affectedRows = await _context.SaveChangesAsync(); return(affectedRows > 0); }