public static PublisherVM GeneratePublisherVM(BookStoreContext db, int?id, bool success = false) { PublisherVM model = new PublisherVM { Publisher = db.Publishers.Find(id), Success = success, }; return(model); }
public static PublisherVM GeneratePublisherVM(BookStoreContext db, bool success = false) { PublisherVM model = new PublisherVM { Publisher = new Publisher(), Success = success, }; return(model); }