Exemplo n.º 1
0
 public IEnumerable <Topic> GetAll()
 {
     return(_topicRepo.GetAll().Select(t => new Topic()
     {
         Id = t.Id,
         Title = t.Title,
         Creator = _memberService.Get(t.IdCreator)
     }));
 }
Exemplo n.º 2
0
        // GET: Blog/Create
        public ActionResult Create()
        {
            if (!AuthorizeUser())
            {
                return(RedirectToAction("Login", "Accounts"));
            }

            var topicSelectList = new SelectList(topicRepo.GetAll(), "BlogTopicID", "Name", "1");

            ViewBag.topicSelectList = topicSelectList;

            return(View());
        }
Exemplo n.º 3
0
        public ActionResult Create()
        {
            // Get magazines for correct display for magazine select on create edition page
            var magazines = _magazineRepository.GetAll();

            ViewBag.MagazineTitles = magazines.Select(a => a.MagazineName);

            // Get topics for correct display for topic select on create edition page
            var topics = _topicRepository.GetAll();

            ViewBag.Topics = topics.Select(a => a.TopicName);

            return(View());
        }
Exemplo n.º 4
0
        public ActionResult Topics()
        {
            TopicRepository     repo      = new TopicRepository();
            List <Models.Topic> lstReturn = repo.GetAll();

            return(Json(lstReturn, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 5
0
        public ActionResult FollowTopic()
        {
            if (!AuthorizeUser())
            {
                return(RedirectToAction("Login", "Accounts"));
            }

            var user_id = int.Parse(Session["user_id"].ToString());

            var topicRepository       = new TopicRepository();
            var followTopicRepository = new FollowTopicRepository();

            var topicList = topicRepository.GetAll();

            var        userSelectedTopics   = followTopicRepository.GetTopicsByUser(user_id);
            List <int> userSelectedTopicIds = new List <int>();

            foreach (var followTopic in userSelectedTopics)
            {
                userSelectedTopicIds.Add(followTopic.TopicID);
            }

            ViewBag.userSelectedTopics = userSelectedTopicIds;

            return(View(topicList));
        }
Exemplo n.º 6
0
        public void TestEntityGetAll()
        {
            var mockTeste = new Mock <IGetDB <Topic> >();

            var topicRepository = new TopicRepository(mockTeste.Object);

            topicRepository.GetAll();

            mockTeste.Verify(x => x.GetAllRegister());
        }
Exemplo n.º 7
0
        public async Task <ActionResult> Index()
        {
            var topics = _topicRepository.GetAll();

            foreach (var topic in topics)
            {
                topic.Body = await StorageApi.GetTopicBody(topic.Name);

                Cache[topic.Name] = topic;
            }

            return(View(topics));
        }
Exemplo n.º 8
0
        public IViewComponentResult Invoke(int?id)
        {
            if (id != null)
            {
                var followedList = _topicRepository.MemberFollowedTopics((int)id);

                return(View(followedList));
            }

            var list = _topicRepository.GetAll().Take(8).ToList();

            return(View(list));
        }
Exemplo n.º 9
0
        public async void TopicRepository_GetAll_Test()
        {
            // Arrange
            var context         = GetContext("TopicRepository_GetAll_Test");
            var topicRepository = new TopicRepository(context);

            await context.Topic.AddRangeAsync(new Topic("topic1"), new Topic("topic2"), new Topic("topic3"), new Topic("topic4"), new Topic("topic5"));

            await context.SaveChangesAsync();

            // Act
            var list = await topicRepository.GetAll();

            // Assert
            //	Assert.Equal(5, list.Count());
            Assert.Contains(list, x => x.Name == "topic1");
        }
Exemplo n.º 10
0
        public void Should_Create_And_Read()
        {
            var topic     = Topic.topics.First();
            var topicRepo = new TopicRepository(session);

            topicRepo.SaveOrUpdate(topic);
            var  topics = topicRepo.GetAll();
            Todo todo   = new Todo {
                Completed = false, Outcome = "Teste", Title = "teste de dodo", Topic = topic
            };

            todoRepository.SaveOrUpdate(todo);
            session.Flush();
            var todos = todoRepository.GetAll();

            Assert.Contains(todo, todos);
            Assert.Single(todos);
        }
        // GET: Topic
        public IActionResult Index()
        {
            TopicAndMemberViewModel model = new TopicAndMemberViewModel();

            if (!HttpContext.Request.Cookies.ContainsKey("ID") || HttpContext.Request.Cookies["ID"] == "")
            {
                model.Member = null;
            }
            else
            {
                int id = int.Parse(HttpContext.Request.Cookies["ID"]);
                model.Member = _memberRepository.Get(a => a.ID == id);
            }

            model.Topics = _topicRepository.GetAll();

            return(View(model));
        }
Exemplo n.º 12
0
        // GET: Article/Create
        public IActionResult Create()
        {
            Article article = new Article();

            article.ArticleTopics = _topicRepository.GetAll().Select(x => new SelectListItem {
                Text = x.Name, Value = x.ID.ToString()
            }).ToList() as IList <ArticleTopics>;

            ViewBag.Topics = _topicRepository.GetAll().Select(a => new SelectListItem {
                Text = a.Name, Value = a.ID.ToString()
            });
            //ViewBag.Topics = new SelectList(_topicRepository.GetAll(), "ID", "Name");
            return(View());
        }
Exemplo n.º 13
0
        public ActionResult Search(string searchText, string searchType)
        {
            if (searchType == "By title")
            {
                if (searchText.Length < 5)
                {
                    return(RedirectToAction("Index"));
                }

                var editions = _editionRepository.GetAll().Where(a => a.EditionTitle.Contains(searchText));

                Dictionary <EditionModel, IEnumerable <ArticleModel> > editionsAndArticles = new Dictionary <EditionModel, IEnumerable <ArticleModel> >();

                foreach (var edition in editions)
                {
                    editionsAndArticles.Add(edition, _editionRepository.GetArticles(edition.EditionId));
                }

                ViewBag.Editions = editionsAndArticles;

                return(View());
            }
            else if (searchType == "By topic")
            {
                if (searchText.Length < 5)
                {
                    return(RedirectToAction("Index"));
                }

                TopicModel topic = _topicRepository.GetAll().FirstOrDefault(a => a.TopicName.Contains(searchText));

                if (topic != null)
                {
                    return(RedirectToAction("Index", new { topicId = topic.TopicId }));
                }
            }

            return(RedirectToAction("Index"));
        }
Exemplo n.º 14
0
 public async Task <TopicDto[]> GetAll()
 {
     return(_mapper.Map <TopicDto[]>((await _repository.GetAll()).ToArray()));
 }
Exemplo n.º 15
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(0, 552, true);
            WriteLiteral(@"<style>
    .btn1:hover {
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19) !important;
        background-color: #fff !important;
        color: deepskyblue !important
    }

    .btn2:hover {
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19) !important;
        background-color: #fff !important;
        color: darkblue !important
    }

    .box1:hover {
        box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19) !important;
    }
</style>
");
            EndContext();
#line 18 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"

            ViewBag.Title = "سایت آموزشی فارسی پرشین لرنینگ";
            SliderRepository    RepSlider    = new SliderRepository();
            TopicRepository     RepTopic     = new TopicRepository();
            MovieRepository     RepMovie     = new MovieRepository();
            CourseRepository    RepCourse    = new CourseRepository();
            ProfessorRepository RepProfessor = new ProfessorRepository();

#line default
#line hidden
            BeginContext(907, 417, true);
            WriteLiteral(@"<header>


    <div class=""container"">
        <div class=""row"">
            <div class=""col-lg-5 col-sm-12"" style=""text-align:center"">

                <div id=""myCarousel"" class=""carousel slide"" data-ride=""carousel"" style=""background-color:whitesmoke;margin-top:100px;margin-bottom:30px;border-radius:45px;opacity:0.9;padding-top:15px;padding-bottom:15px"">
                    <div class=""carousel-inner"">
");
            EndContext();
#line 35 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            foreach (var item in RepSlider.GetSlider().Take(4))
            {
#line default
#line hidden
                BeginContext(1429, 122, true);
                WriteLiteral("                            <div class=\"item \">\r\n                                <div style=\"font-weight:bold;color:blue\">");
                EndContext();
                BeginContext(1552, 10, false);
#line 38 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(item.Title);

#line default
#line hidden
                EndContext();
                BeginContext(1562, 199, true);
                WriteLiteral("</div>\r\n                                <h4><small>: مرور کلی</small></h4>\r\n                                <ul style=\"direction:rtl;text-align:right;list-style-type:none;font-size:14px!important\">\r\n");
                EndContext();
#line 41 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                foreach (var item1 in RepTopic.GetAll().Take(4))
                {
#line default
#line hidden
                    BeginContext(1887, 130, true);
                    WriteLiteral("                                        <li>\r\n                                            <span class=\"fa fa-check\"></span>&nbsp; ");
                    EndContext();
                    BeginContext(2018, 11, false);
#line 44 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                    Write(item1.Title);

#line default
#line hidden
                    EndContext();
                    BeginContext(2029, 49, true);
                    WriteLiteral("\r\n                                        </li>\r\n");
                    EndContext();
#line 46 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                }

#line default
#line hidden
                BeginContext(2117, 347, true);
                WriteLiteral(@"                                    <li>
                                        <span class=""fa fa-check""></span>&nbsp;  و...
                                    </li>
                                </ul>
                                <div style=""text-align:right;padding-right:30px"">
                                    <h4>تعداد قسمت : ");
                EndContext();
                BeginContext(2465, 11, false);
#line 52 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(item.Number);

#line default
#line hidden
                EndContext();
                BeginContext(2476, 84, true);
                WriteLiteral(" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h4>\r\n                                    <h4>مدرس: ");
                EndContext();
                BeginContext(2561, 14, false);
#line 53 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(item.Professor);

#line default
#line hidden
                EndContext();
                BeginContext(2575, 201, true);
                WriteLiteral("</h4>\r\n                                </div>\r\n                                <div class=\"author-img mb20\" style=\"height:150px;width:150px;margin-left:150px\">\r\n                                    <img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 2776, "\"", 2794, 1);
#line 56 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 2782, item.ImgUrl, 2782, 12, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginWriteAttribute("alt", " alt=\"", 2795, "\"", 2810, 1);
#line 56 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 2801, item.Alt, 2801, 9, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(2811, 538, true);
                WriteLiteral(@"/>
                                </div>
                                <button style=""border-radius:20px;color:white;background-color:deepskyblue;outline:none;margin-bottom:8px!important"" href=""#"" class=""btn btn-default btn1"" type=""button"">افزودن به سبد خرید</button>
                                <button style=""border-radius:20px;color:white;background-color:darkblue;outline:none;margin-bottom:8px!important"" href=""#"" class=""btn btn-danjer btn2"" type=""button"">مشاهده جزئیات دوره</button>

                            </div>
");
                EndContext();
#line 62 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(3376, 541, true);
            WriteLiteral(@"                    </div>
                </div>
            </div>
        </div>
    </div>
</header>




<br />
<div class=""container row wow fadeInDown"">
    <p class=""col-lg-2"" style=""margin-top:25px;text-align:center;font-size:15px;padding:5px;background-color:white;border-radius:10px;border:1px solid lightgray;color:darkblue"">فیلم های پیشنهادی ما</p>
    <div class=""col-lg-10"" style=""margin-top:40px;height:1px;background:lightgray""></div>
</div>
<div class=""container row wow fadeInDown"" style=""margin-top:30px"">
");
            EndContext();
#line 79 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            foreach (var itemMovie in RepMovie.GetMovie().Take(3))
            {
#line default
#line hidden
                BeginContext(3985, 225, true);
                WriteLiteral("        <div class=\"col-lg-4\" style=\"text-align:center\">\r\n            <div class=\"single-course\" style=\"background-color:#fff\">\r\n                <video controls style=\"width:90%;padding-top:20px\">\r\n                    <source");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 4210, "\"", 4235, 1);
#line 84 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 4216, itemMovie.MovieUrl, 4216, 19, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(4236, 292, true);
                WriteLiteral(@" type=""video/mp4"">
                    <source src=""mov_bbb.ogg"" type=""video/ogg"">
                    Your browser does not support HTML5 video.
                </video>
                <div style=""position:absolute;top:10px;right:20px;background-color:deeppink;color:white;padding:6px"">");
                EndContext();
                BeginContext(4529, 15, false);
#line 88 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemMovie.State);

#line default
#line hidden
                EndContext();
                BeginContext(4544, 137, true);
                WriteLiteral("</div>\r\n                <div class=\"w3-container w3-center\" style=\"padding-bottom:15px\">\r\n                    <h5 style=\"color:darkblue\">");
                EndContext();
                BeginContext(4682, 15, false);
#line 90 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemMovie.Title);

#line default
#line hidden
                EndContext();
                BeginContext(4697, 38, true);
                WriteLiteral("</h5>\r\n                    <h5>مدرس : ");
                EndContext();
                BeginContext(4736, 19, false);
#line 91 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemMovie.Professor);

#line default
#line hidden
                EndContext();
                BeginContext(4755, 67, true);
                WriteLiteral("</h5>\r\n                </div>\r\n            </div>\r\n        </div>\r\n");
                EndContext();
#line 95 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(4829, 1844, true);
            WriteLiteral(@"
</div>




<section class=""section-padding wow fadeInDown"">
    <div class=""container"">
        <div class=""row"">
            <div class=""col-md-8 col-lg-8 col-md-offset-2 col-lg-offset-2 col-sm-12 col-xs-12"">
                <div class=""text-center wow fadeIn"">
                    <h2 class=""xs-font20"" style=""color:darkblue"">
                        سایت آموزشی فارسی
                        <span style=""color:white;width:150px;padding-right:10px;color: white;font-size: 38px;font-weight: bold;
                              font-family: 'A Afsaneh';text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);"">
                            <span style=""color:rebeccapurple;"">پی</span><span style=""color:mediumvioletred"">لرن</span>
                        </span>
                    </h");
            WriteLiteral(@"2><br /><br />
                    <p style=""font-size:16px;"">
                        سایت پرشین لرنینگ(پی لرن) سایتی کاملا فارسی برای فارسی زبانان ایران و جهان است.
                        این سایت ارایه دهنده کاملترین مجموعه های کمیاب و یا حتی نایاب آموزشی جهان است که توسط بهترین و مجرب ترین اساتید هر زمینه گردآوری گردیده است
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>




<section class=""fun-fact-area center white relative padding-100-70"" id=""fact"">
    <div class=""area-bg"" data-stellar-background-ratio=""0.6""></div>
    <div class=""container"">
        <div class=""row"">
            <div class=""col-md-3 col-sm-6 col-xs-12"">
                <div class=""single-fun-fact mb30 wow fadeInUp"" data-wow-delay=""0.3s"">
                    ");
            EndContext();
            BeginContext(6673, 42, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "bf3c54f234924a9c99edf4172005bd81", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(6715, 569, true);
            WriteLiteral(@"
                    <h4>مشاوره</h4>
                    <p style=""font-size:12px;padding-top:10px!important"">                کاربران می توانند در قسمت درباره ما و با انتخاب کارشناس مربوطه جهت مشاوره با وی تماس بگیرند</p>
                    <h3 class=""font60 xs-font26""><span class=""counter"">10</span></h3>
                    <p class=""font600""> مشاور</p>
                </div>
            </div>
            <div class=""col-md-3 col-sm-6 col-xs-12"">
                <div class=""single-fun-fact mb30 wow fadeInUp"" data-wow-delay=""0.1s"">
                    ");
            EndContext();
            BeginContext(7284, 42, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "2f00882f25f845b5a6c84839e6b55407", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(7326, 605, true);
            WriteLiteral(@"
                    <h4>دعوت به همکاری</h4>
                    <p style=""font-size:12px;padding-top:10px!important"">
                        از متخصصان زمینه های برنامه نویسی جهت تهیه دوره های آموزشی خود و تدریس دعوت به عمل می آید
                    </p>
                    <h3 class=""font60 xs-font26""><span class=""counter"">20</span></h3>
                    <p class=""font600"">مدرس</p>
                </div>
            </div>
            <div class=""col-md-3 col-sm-6 col-xs-12"">
                <div class=""single-fun-fact mb30 wow fadeInUp"" data-wow-delay=""0.2s"">
                    ");
            EndContext();
            BeginContext(7931, 48, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "163683dabe8d4972903a43ef3fe0655e", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(7979, 622, true);
            WriteLiteral(@"
                    <h4 style=""f"">شرکت در دوره </h4>
                    <p style=""font-size:12px;padding-top:10px!important"">
                        دانشجویان و دانش آموزان می توانند با انتخاب و شرکت در دوره آموزشی مورد نظر کسب دانش نمایند
                    </p>
                    <h3 class=""font60 xs-font26""><span class=""counter"">60</span></h3>
                    <p class=""font600"">دسته آموزشی</p>
                </div>
            </div>
            <div class=""col-md-3 col-sm-6 col-xs-12"">
                <div class=""single-fun-fact mb30 wow fadeInUp"" data-wow-delay=""0.4s"">
                    ");
            EndContext();
            BeginContext(8601, 42, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "1cb6e0a69ab4496694b031ebd35962ce", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(8643, 987, true);
            WriteLiteral(@"
                    <h4>ثبت نام</h4>
                    <p style=""font-size:12px;padding-top:10px!important"">
                        کاربران وهمکاران جهت استفاده از دوره های آموزشی باید در سایت ثبت نام نمایند و یا وارد شوند
                    </p>
                    <h3 class=""font60 xs-font26""><span class=""counter"">900</span></h3>
                    <p class=""font600"">عضو فعال</p>
                </div>
            </div>
        </div>
    </div>
</section>





<section class=""course-area padding-top wow fadeInDown"" id=""courses"">
    <div class=""container-fluid"">
        <div class=""row"">
            <div class=""col-md-8 col-lg-8 col-md-offset-2 col-lg-offset-2 col-sm-12 col-xs-12"">
                <div class=""area-title text-center wow fadeIn"">
                    <h3 class=""xs-font26"" style=""color:darkblue"">جدیدترین ترین دوره های آموزشی</h3>
                </div>
            </div>
        </div>
        <div class=""row course-list"">
");
            EndContext();
#line 191 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            foreach (var itemCourse in RepCourse.GetCourse().Take(6))
            {
#line default
#line hidden
                BeginContext(9717, 187, true);
                WriteLiteral("                <div class=\"col-md-3 col-lg-3 col-sm-6 col-xs-12 \">\r\n                    <div class=\"single-course mb20 box1\" style=\"background-color:white\">\r\n                        <img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 9904, "\"", 9928, 1);
#line 195 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 9910, itemCourse.ImgUrl, 9910, 18, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginWriteAttribute("alt", " alt=\"", 9929, "\"", 9950, 1);
#line 195 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 9935, itemCourse.Alt, 9935, 15, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(9951, 171, true);
                WriteLiteral(">\r\n                        <div class=\"course-details padding30\">\r\n                            <h3 class=\"font18\" style=\"text-align:center;font-size:18px;color:darkblue\"> ");
                EndContext();
                BeginContext(10123, 16, false);
#line 197 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemCourse.Title);

#line default
#line hidden
                EndContext();
                BeginContext(10139, 84, true);
                WriteLiteral(" </h3>\r\n                            <p style=\"text-align:center;font-size:12px\">سطح ");
                EndContext();
                BeginContext(10224, 21, false);
#line 198 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemCourse.CourseType);

#line default
#line hidden
                EndContext();
                BeginContext(10245, 10, true);
                WriteLiteral(" با تدریس ");
                EndContext();
                BeginContext(10256, 20, false);
#line 198 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemCourse.Professor);

#line default
#line hidden
                EndContext();
                BeginContext(10276, 218, true);
                WriteLiteral("</p>\r\n                            <p class=\"mt30\"><a href=\"Htmlpage.html\" class=\"enroll-button main-button icon-button\" style=\"text-decoration:none\">مشاهده پکیج</a><span style=\"color:deepskyblue\" class=\"course-price\"> ");
                EndContext();
                BeginContext(10495, 16, false);
#line 199 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemCourse.Price);

#line default
#line hidden
                EndContext();
                BeginContext(10511, 162, true);
                WriteLiteral("</span><span style=\"color:deepskyblue\" class=\"course-price\">تومان</span></p>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n");
                EndContext();
#line 203 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(10688, 558, true);
            WriteLiteral(@"        </div>
    </div>
</section>




<section class=""blog-feed-area padding-top "" id=""blog"">
    <div class=""container"">
        <div class=""container row wow fadeInDown"">
            <p class=""col-lg-2"" style=""margin-top:25px;text-align:center;font-size:16px;padding:5px;background-color:white;border-radius:10px;border:1px solid lightgray;color:darkblue"">مدرسین مربوطه</p>
            <div class=""col-lg-10"" style=""margin-top:40px;height:1px;background:lightgray""></div>
        </div>

        <div class=""row"" style=""margin-top:50px"">
");
            EndContext();
#line 219 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            foreach (var itemProf in RepProfessor.GetProfessor())
            {
#line default
#line hidden
                BeginContext(11329, 306, true);
                WriteLiteral(@"                <div class=""col-md-4 col-lg-4 col-sm-12 col-xs-12"">
                    <div class=""single-blog-item sm-mb30 xs-mb30 wow fadeInUp"" data-wow-delay=""0.2s"" style=""background-image:url(/home/img/Body/55.png)"">
                        <div class=""blog-thumb"">
                            <img");
                EndContext();
                BeginWriteAttribute("src", " src=\"", 11635, "\"", 11657, 1);
#line 224 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 11641, itemProf.ImgUrl, 11641, 16, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginWriteAttribute("alt", " alt=\"", 11658, "\"", 11677, 1);
#line 224 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                WriteAttributeValue("", 11664, itemProf.Alt, 11664, 13, false);

#line default
#line hidden
                EndWriteAttribute();
                BeginContext(11678, 202, true);
                WriteLiteral(">\r\n                        </div>\r\n                        <div class=\"blog-details padding30\">\r\n                            <h3 class=\"blog-title font20 mb30\" style=\"text-align:center;font-size:22px\"> ");
                EndContext();
                BeginContext(11881, 13, false);
#line 227 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemProf.Name);

#line default
#line hidden
                EndContext();
                BeginContext(11894, 144, true);
                WriteLiteral(" </h3>\r\n                            <p class=\"blog-meta font14 mt20\" style=\"text-align:center;font-size:16px\">\r\n                                ");
                EndContext();
                BeginContext(12039, 17, false);
#line 229 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemProf.Evidence);

#line default
#line hidden
                EndContext();
                BeginContext(12056, 41, true);
                WriteLiteral("\r\n                                <br /> ");
                EndContext();
                BeginContext(12098, 14, false);
#line 230 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
                Write(itemProf.Skill);

#line default
#line hidden
                EndContext();
                BeginContext(12112, 644, true);
                WriteLiteral(@"
                            </p>
                            <br />
                            <a href=""#""><i id=""i"" class=""fa fa-telegram"" style=""color:deepskyblue;font-size:20px""></i></a>
                            <a href=""#""><i id=""i"" class=""fa fa-instagram"" style=""color:deeppink;font-size:20px""></i></a>
                            <a href=""#""><i id=""i"" class=""fa fa-google-plus"" style=""color:red;font-size:20px""></i></a>
                            <a href=""#""><i id=""i"" class=""fa fa-whatsapp"" style=""color:lightgreen;font-size:20px""></i></a>
                        </div>
                    </div>
                </div>
");
                EndContext();
#line 240 "C:\Users\Mohamad Pc\Desktop\Persian_Learning\PesianLearning\Views\Home\Index.cshtml"
            }

#line default
#line hidden
            BeginContext(12771, 260, true);
            WriteLiteral(@"
            <div class=""col-md-4 col-lg-4 col-sm-6 col-xs-12 hidden-sm"">
                <div class=""single-blog-item wow fadeInUp visible-sm"" data-wow-delay=""0.4s"">
                    <div class=""blog-thumb"">
                        <a href=""blog.html"">");
            EndContext();
            BeginContext(13031, 35, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "9805e997f43a4779a419978066ec014b", async() => {
            }
                                                                        );
            __Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
            __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
            __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(13066, 485, true);
            WriteLiteral(@"</a>
                    </div>
                    <div class=""blog-details padding30"">
                        <h3 class=""blog-title font20 mb30""><a href=""blog.html"">Blazeon Scrambles to Police Content Amid Rapid Growth</a></h3>
                        <p class=""blog-meta font14 mt20""><a href=""#"">Feb 01, 2016  </a> by <a href=""#"">Mark Stonis</a></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<br /><br />");
            EndContext();
        }