public static void SaveChangesAuthor(AuthorVM sender) { Author newAuthor = new Author(sender.firstName, sender.lastName, sender.id); sender.magazine.shopMagazine.authors.Remove(sender.selectedAuthor); sender.magazine.shopMagazine.authors.Add(newAuthor); sender.ActualizeAuthorsList(); }
public static void DeleteAuthor(AuthorVM sender) { sender.magazine.shopMagazine.authors.Remove(sender.selectedAuthor); sender.ActualizeAuthorsList(); }
public static void AddAuthor(AuthorVM sender) { Author newAuthor = new Author(sender.firstName, sender.lastName, sender.id); sender.magazine.shopMagazine.authors.Add(newAuthor); sender.ActualizeAuthorsList(); }