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

            return(model);
        }
Beispiel #2
0
        public static PublisherVM GeneratePublisherVM(BookStoreContext db, bool success = false)
        {
            PublisherVM model = new PublisherVM
            {
                Publisher = new Publisher(),
                Success   = success,
            };

            return(model);
        }