Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static PublisherVM GeneratePublisherVM(BookStoreContext db, bool success = false)
        {
            PublisherVM model = new PublisherVM
            {
                Publisher = new Publisher(),
                Success   = success,
            };

            return(model);
        }