BookShop.Models.Book.CreateBook C# (CSharp) Метод

CreateBook() публичный статический Метод

Create a new Book object.
public static CreateBook ( global id, global author, global title, global price ) : Book
id global Initial value of the Id property.
author global Initial value of the Author property.
title global Initial value of the Title property.
price global Initial value of the Price property.
Результат Book
        public static Book CreateBook(global::System.Int32 id, global::System.String author, global::System.String title, global::System.Decimal price)
        {
            Book book = new Book();
            book.Id = id;
            book.Author = author;
            book.Title = title;
            book.Price = price;
            return book;
        }