ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Models/Course/CourseModel.cs
using Grand.Core.Models;
using System.Collections.Generic;

namespace Grand.Web.Models.Course
{
    public partial class CourseModel : BaseEntityModel
    {
        public CourseModel()
        {
            Subjects = new List<Subject>();
            Lessons = new List<Lesson>();
        }

        public string Name { get; set; }
        public string Level { get; set; }
        public string ShortDescription { get; set; }
        public string Description { get; set; }
        public string MetaKeywords { get; set; }
        public string MetaDescription { get; set; }
        public string MetaTitle { get; set; }
        public string SeName { get; set; }
        public string PictureUrl { get; set; }
        public IList<Subject> Subjects { get; set; }
        public IList<Lesson> Lessons { get; set; }
        public bool Approved { get; set; }

        public partial class Subject : BaseEntityModel
        {
            public string Name { get; set; }
            public int DisplayOrder { get; set; }
        }

        public partial class Lesson : BaseEntityModel
        {
            public string SubjectId { get; set; }
            public string Name { get; set; }
            public string ShortDescription { get; set; }
            public int DisplayOrder { get; set; }
            public string PictureUrl { get; set; }
            public bool Approved { get; set; }
        }

    }
}
