CapRaffle.PopulateDatabase.Category.CreateCategory C# (CSharp) Метод

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

Create a new Category object.
public static CreateCategory ( global categoryId, global isActive ) : Category
categoryId global Initial value of the CategoryId property.
isActive global Initial value of the IsActive property.
Результат Category
        public static Category CreateCategory(global::System.Int32 categoryId, global::System.Boolean isActive)
        {
            Category category = new Category();
            category.CategoryId = categoryId;
            category.IsActive = isActive;
            return category;
        }