/// <summary>
 /// Adds a new genre on the database.
 /// </summary>
 /// <param name="genre">The new genre.</param>
 public void Create(Genre genre)
 {
     _context.Genres.Add(genre);
     _context.SaveChanges();
 }
 /// <summary>
 /// Deletes an exisitng genre on the database.
 /// </summary>
 /// <param name="genre">The genre to be deleted.</param>
 public void Delete(Genre genre)
 {
     _context.Genres.Remove(genre);
     _context.SaveChanges();
 }
 /// <summary>
 /// Updates an exisitng genre on the database.
 /// </summary>
 /// <param name="genre">The genre to be updated.</param>
 public void Update(Genre genre)
 {
     _context.Entry<Genre>(genre).State = EntityState.Modified;
     _context.SaveChanges();
 }