public string Index(string id) { using (RealEstateSystemContext db = new RealEstateSystemContext()) { switch (id) { case "fb": db.Dashboard.First().TotalFbclick++; break; case "lin": db.Dashboard.First().TotalLinClick++; break; case "ins": db.Dashboard.First().TotalInsClick++; break; case "twi": db.Dashboard.First().TotalTwiClick++; break; case "pin": db.Dashboard.First().TotalPinClick++; break; default: break; } db.SaveChanges(); return("1"); } }
public IndexModel( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IEmailSender emailSender) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _context = new RealEstateSystemContext(); }
public async Task <IActionResult> OnPostAsync(string returnUrl = null) { returnUrl = returnUrl ?? Url.Content("~/"); if (ModelState.IsValid) { // Start check Is Admin RealEstateSystemContext _context = new RealEstateSystemContext(); RES.Data.DBModels.Admin ad = _context.Admin.Where(n => n.UserName == Input.Email && HashPwdTool.CheckPassword(Input.Password, n.PasswordHash)).SingleOrDefault(); if (ad != null) { HttpContext.Session.SetString("AdminSession", ad.UserName); return(RedirectToAction("Index", "Home", new { Area = "Admin" })); } // End check Is Admin var result = await _signInManager.PasswordSignInAsync(Input.Email, Input.Password, Input.RememberMe, lockoutOnFailure : true); if (result.Succeeded) { try { using (RealEstateSystemContext db = new RealEstateSystemContext()) { Customer customer = db.Customer.Where(n => n.Account.UserName == Input.Email).Single(); HttpContext.Session.SetString("User_Name_Session", customer.LastName + " " + customer.Firstname); } } catch (Exception) { } _logger.LogInformation("User logged in."); return(LocalRedirect(returnUrl)); } if (result.RequiresTwoFactor) { return(RedirectToPage("./LoginWith2fa", new { ReturnUrl = returnUrl, RememberMe = Input.RememberMe })); } if (result.IsLockedOut) { _logger.LogWarning("User account locked out."); return(RedirectToPage("./Lockout")); } else { ModelState.AddModelError(string.Empty, "Invalid login attempt."); return(Page()); } } // If we got this far, something failed, redisplay form return(Page()); }
//public List<Blog> lst3NewestBlog { get; set; } public Home_Index() { using (RealEstateSystemContext db = new RealEstateSystemContext()) { try { Dashboard ds = db.Dashboard.First(); ds.TotalGuest += 1; db.SaveChanges(); } catch (Exception) { } } }
public ChartModel() { DateTime dt = DateTime.Now; this.totalDayOfMonth = DateTime.DaysInMonth(dt.Year, dt.Month); this.lstNewPosts = new List <int>(); this.lstNewRealPosts = new List <int>(); this.lstNewUsers = new List <int>(); this._context = new RealEstateSystemContext(); for (int i = 1; i <= totalDayOfMonth; i++) { int newPostInDay = GetNewPostInDay(i); int newRealPostInDay = GetRealNewPostInDay(i); int newUsersInDay = GetNewUserInDay(i); lstNewPosts.Add(newPostInDay); lstNewRealPosts.Add(newRealPostInDay); lstNewUsers.Add(newUsersInDay); } }
public HomeDataModel() { _context = new RealEstateSystemContext(); Dashboard ds = _context.Dashboard.First(); this.totalGuest = ds.TotalGuest ?? 0; this.totalNewUser = _context.Customer.Where(n => n.CreatedDate.Value.Month == DateTime.Now.Month).Count(); this.totalUser = _context.Customer.Count(); this.totalPost = _context.Post.Count(); List <Customer> customers = _context.Customer.Where(n => n.Block.Count() != 0).Include(n => n.Block).ToList(); customers = customers.Where(n => n.Block.Last().UnBlockDate.Equals(null)).ToList(); this.totalBlockedUser = customers.Count; this.totalSellingPost = _context.Post.Where(n => n.Status == 2).Count(); this.totalFBClick = ds.TotalFbclick ?? 0; this.totalInsClick = ds.TotalInsClick ?? 0; this.totalTwiClick = ds.TotalTwiClick ?? 0; this.totalLinClick = ds.TotalLinClick ?? 0; this.customer = new BestCustomer(); this.chart = new ChartModel(); }
public AccountModel() { db = new RealEstateSystemContext(); }
public PostController() { _context = new RealEstateSystemContext(); }
public PostModel(RealEstateSystemContext db) { this.db = db; }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" ViewData["Title"] = "Chi tiết | Bất động sản Miền Trung"; RealEstateSystemContext db = new RealEstateSystemContext(); #line default #line hidden BeginContext(200, 157, true); WriteLiteral("\r\n<!-- Page top section -->\r\n<section class=\"page-top-section set-bg\" data-setbg=\"img/page-top-bg.jpg\">\r\n <div class=\"container text-white\">\r\n <h2>"); EndContext(); BeginContext(358, 22, false); #line 12 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Tittle.ToUpper()); #line default #line hidden EndContext(); BeginContext(380, 146, true); WriteLiteral("</h2>\r\n </div>\r\n</section>\r\n<!-- Page top end -->\r\n<!-- Breadcrumb -->\r\n<div class=\"site-breadcrumb\">\r\n <div class=\"container\">\r\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 526, "\"", 561, 1); #line 19 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" WriteAttributeValue("", 533, Url.Action("Index", "Home"), 533, 28, false); #line default #line hidden EndWriteAttribute(); BeginContext(562, 368, true); WriteLiteral(@"><i class=""fa fa-home""></i>Home</a> <span><i class=""fa fa-angle-right""></i>Chi tiết Bài đăng</span> </div> </div> <!-- Page --> <section class=""page-section""> <div class=""container""> <div class=""row""> <div class=""col-lg-8 single-list-page""> <div class=""single-list-slider owl-carousel"" id=""sl-slider""> "); EndContext(); #line 31 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" List <PostImage> lstImage = db.PostImage.Where(n => n.PostId == Model.PostId).ToList(); #line default #line hidden BeginContext(1042, 2, true); WriteLiteral("\r\n"); EndContext(); #line 33 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.PostType == 1) { foreach (var image in lstImage) { #line default #line hidden BeginContext(1198, 68, true); WriteLiteral(" <div class=\"sl-item set-bg\" data-setbg=\""); EndContext(); BeginContext(1268, 34, false); #line 37 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(1303, 111, true); WriteLiteral("\">\r\n <div class=\"sale-notic\">Cần bán</div>\r\n </div>\r\n"); EndContext(); #line 40 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } } else { foreach (var image in lstImage) { #line default #line hidden BeginContext(1597, 68, true); WriteLiteral(" <div class=\"sl-item set-bg\" data-setbg=\""); EndContext(); BeginContext(1667, 34, false); #line 46 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(1702, 116, true); WriteLiteral("\">\r\n <div class=\"rent-notic\">Cần cho thuê</div>\r\n </div>\r\n"); EndContext(); #line 49 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } } #line default #line hidden BeginContext(1868, 105, true); WriteLiteral(" </div>\r\n <div class=\"owl-carousel sl-thumb-slider\" id=\"sl-slider-thumb\">\r\n"); EndContext(); #line 53 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" foreach (var image in lstImage) { #line default #line hidden BeginContext(2050, 65, true); WriteLiteral(" <div class=\"sl-thumb set-bg\" data-setbg=\""); EndContext(); BeginContext(2117, 34, false); #line 55 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(2152, 10, true); WriteLiteral("\"></div>\r\n"); EndContext(); #line 56 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(2185, 203, true); WriteLiteral(" </div>\r\n <div class=\"single-list-content\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-8 sl-title\">\r\n <h2>"); EndContext(); BeginContext(2389, 47, false); #line 61 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.getDetailAddress(Model.Location)); #line default #line hidden EndContext(); BeginContext(2436, 70, true); WriteLiteral("</h2>\r\n <p><i class=\"fa fa-map-marker\"></i>"); EndContext(); BeginContext(2507, 41, false); #line 62 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.getAddress(Model.Location)); #line default #line hidden EndContext(); BeginContext(2548, 86, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-xl-4\">\r\n"); EndContext(); #line 65 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.PostType == 1) { #line default #line hidden BeginContext(2720, 62, true); WriteLiteral(" <a href=\"#\" class=\"price-btn\">"); EndContext(); BeginContext(2783, 41, false); #line 67 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(string.Format("{0:0,0 VND}", Model.Price)); #line default #line hidden EndContext(); BeginContext(2824, 6, true); WriteLiteral("</a>\r\n"); EndContext(); #line 68 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } else { #line default #line hidden BeginContext(2926, 62, true); WriteLiteral(" <a href=\"#\" class=\"price-btn\">"); EndContext(); BeginContext(2989, 49, false); #line 71 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(string.Format("{0:0,0 VND / tháng}", Model.Price)); #line default #line hidden EndContext(); BeginContext(3038, 6, true); WriteLiteral("</a>\r\n"); EndContext(); #line 72 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(3075, 188, true); WriteLiteral(" </div>\r\n\r\n <div class=\"col-xl-12 mb-5\">\r\n <div class=\"fb-like\" data-href=\"http://realestate-ute.azurewebsites.net/"); EndContext(); BeginContext(3264, 12, false); #line 76 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostId); #line default #line hidden EndContext(); BeginContext(3276, 185, true); WriteLiteral("\" data-width=\"\" data-layout=\"standard\" data-action=\"like\" data-size=\"small\" data-show-faces=\"true\" data-share=\"true\"></div>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 79 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.Detail != null) { #line default #line hidden BeginContext(3532, 271, true); WriteLiteral(@" <h3 class=""sl-sp-title"">Thông tin chi tiết</h3> <div class=""row property-details-list""> <div class=""col-md-4 col-sm-6""> <p><i class=""fa fa-th-large""></i> Hướng "); EndContext(); BeginContext(3804, 116, false); #line 84 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Direction.First(n => n.DirectionId == db.Detail.First(c => c.DetailId == Model.Detail).DirectionId).DirectionName); #line default #line hidden EndContext(); BeginContext(3920, 67, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-bed\"></i> "); EndContext(); BeginContext(3988, 56, false); #line 85 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Bedroom); #line default #line hidden EndContext(); BeginContext(4044, 78, true); WriteLiteral(" phòng ngủ</p>\r\n <p><i class=\"fa fa-user\"></i> "); EndContext(); BeginContext(4124, 136, false); #line 86 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Customer.First(c => c.CustomerId == Model.AuthorId).LastName + " " + db.Customer.First(c => c.CustomerId == Model.AuthorId).Firstname); #line default #line hidden EndContext(); BeginContext(4261, 164, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-4 col-sm-6\">\r\n <p><i class=\"fa fa-car\"></i> "); EndContext(); BeginContext(4427, 94, false); #line 89 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Alley == true ? "Trong hẻm" : "Mặt đường lớn"); #line default #line hidden EndContext(); BeginContext(4522, 74, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-building-o\"></i> "); EndContext(); BeginContext(4597, 54, false); #line 90 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Floor); #line default #line hidden EndContext(); BeginContext(4651, 75, true); WriteLiteral(" lầu</p>\r\n <p><i class=\"fa fa-clock-o\"></i> "); EndContext(); BeginContext(4727, 44, false); #line 91 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.GetTimeOfPost(Model.PostTime)); #line default #line hidden EndContext(); BeginContext(4771, 156, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <p><i class=\"fa fa-bath\"></i> "); EndContext(); BeginContext(4928, 57, false); #line 94 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Bathroom); #line default #line hidden EndContext(); BeginContext(4985, 80, true); WriteLiteral(" phòng tắm</p>\r\n <p><i class=\"fa fa-trophy\"></i> "); EndContext(); BeginContext(5067, 48, false); #line 95 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostType == 1 ? "Nhà bán" : "Nhà cho thuê"); #line default #line hidden EndContext(); BeginContext(5116, 74, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 98 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } else { #line default #line hidden BeginContext(5262, 267, true); WriteLiteral(@" <h3 class=""sl-sp-title"">Thông tin chi tiết</h3> <div class=""row property-details-list""> <div class=""col-md-6 col-sm-6""> <p><i class=""fa fa-building-o""></i> "); EndContext(); BeginContext(5530, 77, false); #line 104 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.RealEstateType.First(n => n.RealEstateTypeId == Model.RealEstaleType).Name); #line default #line hidden EndContext(); BeginContext(5607, 68, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-user\"></i> "); EndContext(); BeginContext(5677, 136, false); #line 105 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Customer.First(c => c.CustomerId == Model.AuthorId).LastName + " " + db.Customer.First(c => c.CustomerId == Model.AuthorId).Firstname); #line default #line hidden EndContext(); BeginContext(5814, 168, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-6 col-sm-6\">\r\n <p><i class=\"fa fa-th-large\"></i>"); EndContext(); BeginContext(5983, 10, false); #line 108 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Area); #line default #line hidden EndContext(); BeginContext(5993, 79, true); WriteLiteral(" m²</p>\r\n <p><i class=\"fa fa-clock-o\"></i> "); EndContext(); BeginContext(6073, 44, false); #line 109 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.GetTimeOfPost(Model.PostTime)); #line default #line hidden EndContext(); BeginContext(6117, 74, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 112 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(6214, 130, true); WriteLiteral(" <h3 class=\"sl-sp-title\">Mô tả</h3>\r\n <div class=\"description\">\r\n <p>"); EndContext(); BeginContext(6345, 17, false); #line 115 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Description); #line default #line hidden EndContext(); BeginContext(6362, 204, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- sidebar -->\r\n <div class=\"col-lg-4 col-md-7 sidebar\">\r\n <div class=\"author-card\">\r\n"); EndContext(); #line 122 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" string imgName = Model.Author.AvatarUrl; #line default #line hidden BeginContext(6633, 63, true); WriteLiteral(" <div class=\"author-img set-bg\" data-setbg=\""); EndContext(); BeginContext(6698, 30, false); #line 123 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.AVATAR_URL + imgName); #line default #line hidden EndContext(); BeginContext(6729, 85, true); WriteLiteral("\"></div>\r\n <div class=\"author-info\">\r\n <h5>"); EndContext(); BeginContext(6816, 52, false); #line 125 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Author.LastName + " " + Model.Author.Firstname); #line default #line hidden EndContext(); BeginContext(6869, 190, true); WriteLiteral("</h5>\r\n <p>Real Estate Agent</p>\r\n </div>\r\n <div class=\"author-contact\">\r\n <p><i class=\"fa fa-phone\"></i> "); EndContext(); BeginContext(7061, 59, false); #line 129 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(String.Format("{0:0### ### ###}", Model.Author.PhoneNumber)); #line default #line hidden EndContext(); BeginContext(7121, 63, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-envelope\"></i>"); EndContext(); BeginContext(7185, 18, false); #line 130 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Author.Email); #line default #line hidden EndContext(); BeginContext(7203, 266, true); WriteLiteral(@"</p> </div> </div> </div> </div> <div class=""row""> <div class=""col-lg-8 single-list-page""> <div class=""fb-comments"" data-href=""http://realestate-ute.azurewebsites.net/"); EndContext(); BeginContext(7470, 12, false); #line 137 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostId); #line default #line hidden EndContext(); BeginContext(7482, 122, true); WriteLiteral("\" data-width=\"\" data-numposts=\"10\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n<!-- Page end -->\r\n"); EndContext(); }
public AdminController() { _context = new RealEstateSystemContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" ViewData["Title"] = "Chi tiết | Bất động sản Miền Trung"; RealEstateSystemContext db = new RealEstateSystemContext(); #line default #line hidden BeginContext(200, 157, true); WriteLiteral("\r\n<!-- Page top section -->\r\n<section class=\"page-top-section set-bg\" data-setbg=\"img/page-top-bg.jpg\">\r\n <div class=\"container text-white\">\r\n <h2>"); EndContext(); BeginContext(358, 22, false); #line 12 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Tittle.ToUpper()); #line default #line hidden EndContext(); BeginContext(380, 146, true); WriteLiteral("</h2>\r\n </div>\r\n</section>\r\n<!-- Page top end -->\r\n<!-- Breadcrumb -->\r\n<div class=\"site-breadcrumb\">\r\n <div class=\"container\">\r\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 526, "\"", 561, 1); #line 19 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" WriteAttributeValue("", 533, Url.Action("Index", "Home"), 533, 28, false); #line default #line hidden EndWriteAttribute(); BeginContext(562, 368, true); WriteLiteral(@"><i class=""fa fa-home""></i>Home</a> <span><i class=""fa fa-angle-right""></i>Chi tiết Bài đăng</span> </div> </div> <!-- Page --> <section class=""page-section""> <div class=""container""> <div class=""row""> <div class=""col-lg-8 single-list-page""> <div class=""single-list-slider owl-carousel"" id=""sl-slider""> "); EndContext(); #line 31 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" List <PostImage> lstImage = db.PostImage.Where(n => n.PostId == Model.PostId).ToList(); #line default #line hidden BeginContext(1042, 2, true); WriteLiteral("\r\n"); EndContext(); #line 33 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.PostType == 1) { foreach (var image in lstImage) { #line default #line hidden BeginContext(1198, 68, true); WriteLiteral(" <div class=\"sl-item set-bg\" data-setbg=\""); EndContext(); BeginContext(1268, 34, false); #line 37 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(1303, 111, true); WriteLiteral("\">\r\n <div class=\"sale-notic\">Cần bán</div>\r\n </div>\r\n"); EndContext(); #line 40 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } } else { foreach (var image in lstImage) { #line default #line hidden BeginContext(1597, 68, true); WriteLiteral(" <div class=\"sl-item set-bg\" data-setbg=\""); EndContext(); BeginContext(1667, 34, false); #line 46 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(1702, 116, true); WriteLiteral("\">\r\n <div class=\"rent-notic\">Cần cho thuê</div>\r\n </div>\r\n"); EndContext(); #line 49 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } } #line default #line hidden BeginContext(1868, 105, true); WriteLiteral(" </div>\r\n <div class=\"owl-carousel sl-thumb-slider\" id=\"sl-slider-thumb\">\r\n"); EndContext(); #line 53 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" foreach (var image in lstImage) { #line default #line hidden BeginContext(2050, 65, true); WriteLiteral(" <div class=\"sl-thumb set-bg\" data-setbg=\""); EndContext(); BeginContext(2117, 34, false); #line 55 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.POST_IMG_URL + image.Url); #line default #line hidden EndContext(); BeginContext(2152, 10, true); WriteLiteral("\"></div>\r\n"); EndContext(); #line 56 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(2185, 203, true); WriteLiteral(" </div>\r\n <div class=\"single-list-content\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-8 sl-title\">\r\n <h2>"); EndContext(); BeginContext(2389, 47, false); #line 61 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.getDetailAddress(Model.Location)); #line default #line hidden EndContext(); BeginContext(2436, 70, true); WriteLiteral("</h2>\r\n <p><i class=\"fa fa-map-marker\"></i>"); EndContext(); BeginContext(2507, 41, false); #line 62 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.getAddress(Model.Location)); #line default #line hidden EndContext(); BeginContext(2548, 86, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-xl-4\">\r\n"); EndContext(); #line 65 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.PostType == 1) { #line default #line hidden BeginContext(2720, 62, true); WriteLiteral(" <a href=\"#\" class=\"price-btn\">"); EndContext(); BeginContext(2783, 41, false); #line 67 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(string.Format("{0:0,0 VND}", Model.Price)); #line default #line hidden EndContext(); BeginContext(2824, 6, true); WriteLiteral("</a>\r\n"); EndContext(); #line 68 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } else { #line default #line hidden BeginContext(2926, 62, true); WriteLiteral(" <a href=\"#\" class=\"price-btn\">"); EndContext(); BeginContext(2989, 49, false); #line 71 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(string.Format("{0:0,0 VND / tháng}", Model.Price)); #line default #line hidden EndContext(); BeginContext(3038, 6, true); WriteLiteral("</a>\r\n"); EndContext(); #line 72 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(3075, 188, true); WriteLiteral(" </div>\r\n\r\n <div class=\"col-xl-12 mb-5\">\r\n <div class=\"fb-like\" data-href=\"http://realestate-ute.azurewebsites.net/"); EndContext(); BeginContext(3264, 12, false); #line 76 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostId); #line default #line hidden EndContext(); BeginContext(3276, 185, true); WriteLiteral("\" data-width=\"\" data-layout=\"standard\" data-action=\"like\" data-size=\"small\" data-show-faces=\"true\" data-share=\"true\"></div>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 79 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" if (Model.Detail != null) { #line default #line hidden BeginContext(3532, 271, true); WriteLiteral(@" <h3 class=""sl-sp-title"">Thông tin chi tiết</h3> <div class=""row property-details-list""> <div class=""col-md-4 col-sm-6""> <p><i class=""fa fa-th-large""></i> Hướng "); EndContext(); BeginContext(3804, 116, false); #line 84 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Direction.First(n => n.DirectionId == db.Detail.First(c => c.DetailId == Model.Detail).DirectionId).DirectionName); #line default #line hidden EndContext(); BeginContext(3920, 67, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-bed\"></i> "); EndContext(); BeginContext(3988, 56, false); #line 85 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Bedroom); #line default #line hidden EndContext(); BeginContext(4044, 78, true); WriteLiteral(" phòng ngủ</p>\r\n <p><i class=\"fa fa-user\"></i> "); EndContext(); BeginContext(4124, 136, false); #line 86 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Customer.First(c => c.CustomerId == Model.AuthorId).LastName + " " + db.Customer.First(c => c.CustomerId == Model.AuthorId).Firstname); #line default #line hidden EndContext(); BeginContext(4261, 164, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-4 col-sm-6\">\r\n <p><i class=\"fa fa-car\"></i> "); EndContext(); BeginContext(4427, 94, false); #line 89 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Alley == true ? "Trong hẻm" : "Mặt đường lớn"); #line default #line hidden EndContext(); BeginContext(4522, 74, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-building-o\"></i> "); EndContext(); BeginContext(4597, 54, false); #line 90 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Floor); #line default #line hidden EndContext(); BeginContext(4651, 75, true); WriteLiteral(" lầu</p>\r\n <p><i class=\"fa fa-clock-o\"></i> "); EndContext(); BeginContext(4727, 44, false); #line 91 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.GetTimeOfPost(Model.PostTime)); #line default #line hidden EndContext(); BeginContext(4771, 156, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <p><i class=\"fa fa-bath\"></i> "); EndContext(); BeginContext(4928, 57, false); #line 94 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Detail.First(c => c.DetailId == Model.Detail).Bathroom); #line default #line hidden EndContext(); BeginContext(4985, 80, true); WriteLiteral(" phòng tắm</p>\r\n <p><i class=\"fa fa-trophy\"></i> "); EndContext(); BeginContext(5067, 48, false); #line 95 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostType == 1 ? "Nhà bán" : "Nhà cho thuê"); #line default #line hidden EndContext(); BeginContext(5116, 74, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 98 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } else { #line default #line hidden BeginContext(5262, 267, true); WriteLiteral(@" <h3 class=""sl-sp-title"">Thông tin chi tiết</h3> <div class=""row property-details-list""> <div class=""col-md-6 col-sm-6""> <p><i class=""fa fa-building-o""></i> "); EndContext(); BeginContext(5530, 77, false); #line 104 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.RealEstateType.First(n => n.RealEstateTypeId == Model.RealEstaleType).Name); #line default #line hidden EndContext(); BeginContext(5607, 68, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-user\"></i> "); EndContext(); BeginContext(5677, 136, false); #line 105 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(db.Customer.First(c => c.CustomerId == Model.AuthorId).LastName + " " + db.Customer.First(c => c.CustomerId == Model.AuthorId).Firstname); #line default #line hidden EndContext(); BeginContext(5814, 168, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"col-md-6 col-sm-6\">\r\n <p><i class=\"fa fa-th-large\"></i>"); EndContext(); BeginContext(5983, 10, false); #line 108 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Area); #line default #line hidden EndContext(); BeginContext(5993, 79, true); WriteLiteral(" m²</p>\r\n <p><i class=\"fa fa-clock-o\"></i> "); EndContext(); BeginContext(6073, 44, false); #line 109 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(CommonFunction.GetTimeOfPost(Model.PostTime)); #line default #line hidden EndContext(); BeginContext(6117, 74, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 112 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" } #line default #line hidden BeginContext(6214, 130, true); WriteLiteral(" <h3 class=\"sl-sp-title\">Mô tả</h3>\r\n <div class=\"description\">\r\n <p>"); EndContext(); BeginContext(6345, 17, false); #line 115 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Description); #line default #line hidden EndContext(); BeginContext(6362, 313, true); WriteLiteral(@"</p> </div> <h3 class=""sl-sp-title bd-no"">Location</h3> <div id=""map""></div> </div> </div> <!-- sidebar --> <div class=""col-lg-4 col-md-7 sidebar""> <div class=""author-card""> "); EndContext(); #line 125 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" string imgName = Model.Author.AvatarUrl; #line default #line hidden BeginContext(6742, 63, true); WriteLiteral(" <div class=\"author-img set-bg\" data-setbg=\""); EndContext(); BeginContext(6807, 30, false); #line 126 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Constants.AVATAR_URL + imgName); #line default #line hidden EndContext(); BeginContext(6838, 85, true); WriteLiteral("\"></div>\r\n <div class=\"author-info\">\r\n <h5>"); EndContext(); BeginContext(6925, 52, false); #line 128 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Author.LastName + " " + Model.Author.Firstname); #line default #line hidden EndContext(); BeginContext(6978, 190, true); WriteLiteral("</h5>\r\n <p>Real Estate Agent</p>\r\n </div>\r\n <div class=\"author-contact\">\r\n <p><i class=\"fa fa-phone\"></i> "); EndContext(); BeginContext(7170, 59, false); #line 132 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(String.Format("{0:0### ### ###}", Model.Author.PhoneNumber)); #line default #line hidden EndContext(); BeginContext(7230, 63, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-envelope\"></i>"); EndContext(); BeginContext(7294, 18, false); #line 133 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Author.Email); #line default #line hidden EndContext(); BeginContext(7312, 266, true); WriteLiteral(@"</p> </div> </div> </div> </div> <div class=""row""> <div class=""col-lg-8 single-list-page""> <div class=""fb-comments"" data-href=""http://realestate-ute.azurewebsites.net/"); EndContext(); BeginContext(7579, 12, false); #line 140 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.PostId); #line default #line hidden EndContext(); BeginContext(7591, 675, true); WriteLiteral(@""" data-width="""" data-numposts=""10""></div> </div> </div> </div> </section> <!-- Page end --> <!-- load for map --> <script src=""https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"" type=""text/javascript""></script> <script> //$(document).ready(function () { // initAutocomplete(); //}); function initAutocomplete() { var map = new google.maps.Map(document.getElementById('map'), { center: { lat: -33.8688, lng: 151.2195 }, zoom: 15, mapTypeId: 'roadmap' }); var geocoder = new google.maps.Geocoder(); alert($(""<div>"").html("""); EndContext(); BeginContext(8267, 14, false); #line 164 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Location); #line default #line hidden EndContext(); BeginContext(8281, 70, true); WriteLiteral("\").text());\r\n\r\n geocoder.geocode({ \'address\': $(\"<div>\").html(\""); EndContext(); BeginContext(8352, 14, false); #line 166 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\PostDetail.cshtml" Write(Model.Location); #line default #line hidden EndContext(); BeginContext(8366, 665, true); WriteLiteral(@""").text() }, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert('Geocode was not successful for the following reason: ' + status); } }); } </script> <script src=""https://maps.googleapis.com/maps/api/js?key=AIzaSyAV6dcVxUDSUS_09lE9FzTv6qilBs32qOA&libraries=places&callback=initAutocomplete"" async defer></script>"); EndContext(); }
public InformationController() { _context = new RealEstateSystemContext(); }
public CustomerController() { _context = new RealEstateSystemContext(); }
public AccountModel(string username, string password) { db = new RealEstateSystemContext(); this.username = username; this.password = password; }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" ViewData["Title"] = ViewBag.Title; RealEstateSystemContext db = new RealEstateSystemContext(); #line default #line hidden BeginContext(183, 584, true); WriteLiteral(@" <!-- Page top section --> <section class=""page-top-section set-bg"" data-setbg=""img/page-top-bg.jpg""> <div class=""container text-white""> <h2>KẾT QUẢ TÌM KIẾM</h2> </div> </section> <!-- Page top end --> <!-- Breadcrumb --> <div class=""site-breadcrumb""> <div class=""container""> <a href=""""><i class=""fa fa-home""></i>Home</a> <span><i class=""fa fa-angle-right""></i>Featured Listings</span> </div> </div> <!-- page --> <section class=""page-section categories-page""> <div class=""container""> <div class=""row""> "); EndContext(); #line 29 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" foreach (Post post in Model) { List <PostImage> lstImage = db.PostImage.Where(n => n.PostId == post.PostId).ToList(); #line default #line hidden BeginContext(928, 161, true); WriteLiteral(" <div class=\"col-lg-4 col-md-6\">\r\n <!-- feature -->\r\n <div class=\"feature-item\">\r\n <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 1089, "\"", 1159, 1); #line 35 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" WriteAttributeValue("", 1096, Url.Action("PostDetail", "Post", new { postId = post.PostId }), 1096, 63, false); #line default #line hidden EndWriteAttribute(); BeginContext(1160, 75, true); WriteLiteral(">\r\n <div class=\"feature-pic set-bg\" data-setbg=\""); EndContext(); BeginContext(1237, 40, false); #line 36 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(Constants.POST_IMG_URL + lstImage[0].Url); #line default #line hidden EndContext(); BeginContext(1278, 4, true); WriteLiteral("\">\r\n"); EndContext(); #line 37 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" if (post.PostType == 1) { #line default #line hidden BeginContext(1375, 75, true); WriteLiteral(" <div class=\"sale-notic\">Cần bán</div>\r\n"); EndContext(); #line 40 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } else { #line default #line hidden BeginContext(1558, 80, true); WriteLiteral(" <div class=\"rent-notic\">Cần cho thuê</div>\r\n"); EndContext(); #line 44 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } #line default #line hidden BeginContext(1673, 223, true); WriteLiteral(" </div>\r\n </a>\r\n <div class=\"feature-text\">\r\n <div class=\"text-center feature-title\">\r\n <h5>"); EndContext(); BeginContext(1897, 11, false); #line 49 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(post.Tittle); #line default #line hidden EndContext(); BeginContext(1908, 75, true); WriteLiteral("</h5>\r\n <p><i class=\"fa fa-map-marker\"></i> "); EndContext(); BeginContext(1984, 40, false); #line 50 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(CommonFunction.getAddress(post.Location)); #line default #line hidden EndContext(); BeginContext(2024, 100, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"room-info-warp\">\r\n"); EndContext(); #line 53 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" if (post.Detail != null) { #line default #line hidden BeginContext(2218, 208, true); WriteLiteral(" <div class=\"room-info\">\r\n <div class=\"rf-left\">\r\n <p><i class=\"fa fa-th-large\"></i> hướng "); EndContext(); BeginContext(2427, 115, false); #line 57 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.Direction.First(n => n.DirectionId == db.Detail.First(c => c.DetailId == post.Detail).DirectionId).DirectionName); #line default #line hidden EndContext(); BeginContext(2542, 79, true); WriteLiteral("</p>\r\n <p><i class=\"fa fa-bed\"></i> "); EndContext(); BeginContext(2622, 55, false); #line 58 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.Detail.First(c => c.DetailId == post.Detail).Bedroom); #line default #line hidden EndContext(); BeginContext(2677, 208, true); WriteLiteral(" phòng ngủ</p>\r\n </div>\r\n <div class=\"rf-right\">\r\n <p><i class=\"fa fa-building-o\"></i> "); EndContext(); BeginContext(2886, 53, false); #line 61 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.Detail.First(c => c.DetailId == post.Detail).Floor); #line default #line hidden EndContext(); BeginContext(2939, 84, true); WriteLiteral(" lầu</p>\r\n <p><i class=\"fa fa-bath\"></i> "); EndContext(); BeginContext(3024, 56, false); #line 62 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.Detail.First(c => c.DetailId == post.Detail).Bathroom); #line default #line hidden EndContext(); BeginContext(3080, 108, true); WriteLiteral(" phòng tắm</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 65 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } else { #line default #line hidden BeginContext(3296, 203, true); WriteLiteral(" <div class=\"room-info\">\r\n <div class=\"rf-left\">\r\n <p><i class=\"fa fa-building-o\"></i>"); EndContext(); BeginContext(3500, 76, false); #line 70 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.RealEstateType.First(n => n.RealEstateTypeId == post.RealEstaleType).Name); #line default #line hidden EndContext(); BeginContext(3576, 201, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"rf-right mr-5\">\r\n <p><i class=\"fa fa-th-large\"></i> "); EndContext(); BeginContext(3778, 9, false); #line 73 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(post.Area); #line default #line hidden EndContext(); BeginContext(3787, 106, true); WriteLiteral(" m²</p>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 76 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } #line default #line hidden BeginContext(3928, 187, true); WriteLiteral(" <div class=\"room-info\">\r\n <div class=\"rf-left\">\r\n <p><i class=\"fa fa-user\"></i> "); EndContext(); BeginContext(4117, 134, false); #line 79 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(db.Customer.First(c => c.CustomerId == post.AuthorId).LastName + " " + db.Customer.First(c => c.CustomerId == post.AuthorId).Firstname); #line default #line hidden EndContext(); BeginContext(4252, 183, true); WriteLiteral("</p>\r\n </div>\r\n <div class=\"rf-right\">\r\n <p><i class=\"fa fa-clock-o\"></i> "); EndContext(); BeginContext(4436, 43, false); #line 82 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(CommonFunction.GetTimeOfPost(post.PostTime)); #line default #line hidden EndContext(); BeginContext(4479, 126, true); WriteLiteral("</p>\r\n </div>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 86 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" if (post.PostType == 1) { #line default #line hidden BeginContext(4723, 140, false); #line 88 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(Html.ActionLink(string.Format("{0:0,0 VND}", post.Price), "PostDetail", "Post", new { postId = post.PostId }, new { @class = "room-price" })); #line default #line hidden EndContext(); #line 88 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } else { #line default #line hidden BeginContext(4994, 153, false); #line 92 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(Html.ActionLink(string.Format("{0:0,0 VND}", post.Price) + " / tháng", "PostDetail", "Post", new { postId = post.PostId }, new { @class = "room-price" })); #line default #line hidden EndContext(); #line 92 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } #line default #line hidden BeginContext(5180, 86, true); WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n"); EndContext(); #line 98 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } #line default #line hidden BeginContext(5281, 55, true); WriteLiteral(" </div>\r\n <div class=\"site-pagination\">\r\n"); EndContext(); #line 101 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" int pageCount = Convert.ToInt32(ViewBag.PageCount); int page = Convert.ToInt32(ViewBag.Page); for (int i = 1; i <= pageCount; i++) { if (i == page) { #line default #line hidden BeginContext(5614, 30, true); WriteLiteral(" <span>"); EndContext(); BeginContext(5645, 1, false); #line 109 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(i); #line default #line hidden EndContext(); BeginContext(5646, 9, true); WriteLiteral("</span>\r\n"); EndContext(); #line 110 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } else { #line default #line hidden BeginContext(5752, 88, false); #line 113 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" Write(Html.ActionLink(i.ToString(), "Index", "Post", null, null, null, new { page = i }, null)); #line default #line hidden EndContext(); #line 113 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } } if (pageCount >= 2 && page < pageCount) { #line default #line hidden BeginContext(5962, 22, true); WriteLiteral(" <a"); EndContext(); BeginWriteAttribute("href", " href=\"", 5984, "\"", 6044, 1); #line 119 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" WriteAttributeValue("", 5991, Url.Action("Index", "Post", new { page = page + 1 }), 5991, 53, false); #line default #line hidden EndWriteAttribute(); BeginContext(6045, 40, true); WriteLiteral("><i class=\"fa fa-angle-right\"></i></a>\r\n"); EndContext(); #line 120 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Index.cshtml" } #line default #line hidden BeginContext(6119, 59, true); WriteLiteral(" </div>\r\n </div>\r\n</section>\r\n<!-- page end -->\r\n"); EndContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(196, 50, true); WriteLiteral("\r\n\r\n\r\n\r\n<div class=\"user-panel dis-inline-flex\">\r\n"); EndContext(); #line 11 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Shared\_LoginPartial.cshtml" if (SignInManager.IsSignedIn(User)) { RealEstateSystemContext _context = new RealEstateSystemContext(); AspNetUsers user = _context.AspNetUsers.Where(n => n.Email == User.Identity.Name).SingleOrDefault(); Customer customer = _context.Customer.Where(n => n.AccountId == user.Id).SingleOrDefault(); if (customer == null) { Context.Session.SetString("User_Name_Session", "Guest"); } else { Context.Session.SetString("User_Name_Session", customer.LastName + " " + customer.Firstname); } #line default #line hidden BeginContext(849, 36, true); WriteLiteral(" <div class=\"dropdown\">\r\n "); EndContext(); BeginContext(885, 133, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef78788", async() => { BeginContext(931, 36, true); WriteLiteral("<i class=\"fa fa-user-circle-o\"></i> "); EndContext(); BeginContext(968, 46, false); #line 26 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Shared\_LoginPartial.cshtml" Write(Context.Session.GetString("User_Name_Session")); #line default #line hidden EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__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(1018, 113, true); WriteLiteral("\r\n <div class=\"dropdown-content\" style=\"background-color: darkslategray; margin-left: 21px\">\r\n "); EndContext(); BeginContext(1131, 205, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef710769", async() => { BeginContext(1226, 103, true); WriteLiteral("\r\n <button type=\"submit\" class=\"btn-logout\">Quản lý tài khoản</button>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1336, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1350, 192, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef712790", async() => { BeginContext(1434, 101, true); WriteLiteral("\r\n <button type=\"submit\" class=\"btn-logout\">Quản lý bài đăng</button>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1542, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1556, 214, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef714809", async() => { BeginContext(1666, 97, true); WriteLiteral("\r\n <button type=\"submit\" class=\"btn-logout\">Đổi mật khẩu</button>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1770, 14, true); WriteLiteral("\r\n "); EndContext(); BeginContext(1784, 263, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef716823", async() => { BeginContext(1949, 91, true); WriteLiteral("\r\n <button type=\"submit\" class=\"btn-logout\">Đăng xuất</button>\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Page = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 37 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Shared\_LoginPartial.cshtml" WriteLiteral(Url.Action("Index", "Home", new { area = "" })); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2047, 30, true); WriteLiteral("\r\n </div>\r\n </div>\r\n"); EndContext(); #line 42 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Shared\_LoginPartial.cshtml" } else { #line default #line hidden BeginContext(2111, 8, true); WriteLiteral(" "); EndContext(); BeginContext(2119, 99, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef720366", async() => { BeginContext(2171, 43, true); WriteLiteral("<i class=\"fa fa-user-circle-o\"></i> Đăng ký"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_9.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2218, 10, true); WriteLiteral("\r\n "); EndContext(); BeginContext(2228, 92, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f4518af883246ecba1e4c9aa79df6fd404111ef721986", async() => { BeginContext(2277, 39, true); WriteLiteral("<i class=\"fa fa-sign-in\"></i> Đăng Nhập"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Area = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Page = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2320, 2, true); WriteLiteral("\r\n"); EndContext(); #line 48 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Shared\_LoginPartial.cshtml" } #line default #line hidden BeginContext(2329, 8, true); WriteLiteral("</div>\r\n"); EndContext(); }
public CustomerController(SignInManager <IdentityUser> signInManager) { _context = new RealEstateSystemContext(); _signInManager = signInManager; }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" ViewData["Title"] = "Manager"; Layout = "/Views/Shared/_Layout.cshtml"; RealEstateSystemContext _context = new RealEstateSystemContext(); var notice = TempData["Notice"]; if (notice != null) { ViewData["Notice"] = notice; } #line default #line hidden BeginContext(372, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(374, 86, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("link", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "d70bd5357660c6bfcb18eff0dd6cb3928436efca12995", 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(460, 1113, true); WriteLiteral(@" <!-- Page top section --> <section class=""page-top-section set-bg"" data-setbg=""../../../../img/page-top-bg.jpg""> <div class=""container text-white""> <h2>QUẢN LÝ BÀI ĐĂNG</h2> </div> </section> <!-- Page top end --> <!-- Breadcrumb --> <div class=""site-breadcrumb""> <div class=""container""> <a href=""/""><i class=""fa fa-home""></i>Trang chủ</a> <span><i class=""fa fa-angle-right""></i>Quản lý tài khoản</span> <span><i class=""fa fa-angle-right""></i>Quản lý bài đăng</span> </div> </div> <section class=""page-section categories-page""> <div class=""container""> <div> <div class=""row""> <div class=""col-md-3""> <ul class=""nav nav-pills flex-column""> <li class=""nav-item""><a class=""nav-link"" id=""profile"" href=""/Identity/Account/Manage"">Thông tin cá nhân</a></li> <li class=""nav-item""><a class=""nav-link"" id=""change-password"" href=""/Identity/Account/Ma"); WriteLiteral("nage/ChangePassword\">Đổi mật khẩu</a></li>\r\n <li class=\"nav-item\">"); EndContext(); BeginContext(1573, 90, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca15442", async() => { BeginContext(1643, 16, true); WriteLiteral("Quản lý bài đăng"); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1663, 118, true); WriteLiteral("</li>\r\n </ul>\r\n </div>\r\n <div class=\"col-md-9\">\r\n "); EndContext(); BeginContext(1781, 155, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d70bd5357660c6bfcb18eff0dd6cb3928436efca17242", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); #line 47 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = (ViewData["Notice"] == null ? null : ViewData["Notice"].ToString()); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(1936, 715, true); WriteLiteral(@" <div class=""animated fadeIn""> <div class=""card-body""> <table id=""bootstrap-data-table"" class=""table table-striped table-bordered""> <thead> <tr> <th>Trạng thái</th> <th>Thời gian đăng tin</th> <th>Tiêu đề</th> <th>Loại tin</th> <th></th> </tr> </thead> <tbody> "); EndContext(); #line 61 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" foreach (var post in Model) { #line default #line hidden BeginContext(2756, 46, true); WriteLiteral(" <tr>\r\n"); EndContext(); #line 64 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" DateTime posttime = post.PostTime ?? DateTime.Now; string status = _context.Status.Find(post.Status).StatusType; if (post.Status == 1) { #line default #line hidden BeginContext(3133, 74, true); WriteLiteral(" <td class=\"text-blue\">"); EndContext(); BeginContext(3208, 6, false); #line 68 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(3214, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 69 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" } else if (post.Status == 2) { #line default #line hidden BeginContext(3399, 75, true); WriteLiteral(" <td class=\"text-green\">"); EndContext(); BeginContext(3475, 6, false); #line 72 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(3481, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 73 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" } else { #line default #line hidden BeginContext(3644, 73, true); WriteLiteral(" <td class=\"text-red\">"); EndContext(); BeginContext(3718, 6, false); #line 76 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(3724, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 77 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" } #line default #line hidden BeginContext(3829, 50, true); WriteLiteral("\r\n <td>"); EndContext(); BeginContext(3881, 40, false); #line 80 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(posttime.ToString("dd/MM/yyyy hh:mm tt")); #line default #line hidden EndContext(); BeginContext(3922, 55, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(3978, 11, false); #line 81 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(post.Tittle); #line default #line hidden EndContext(); BeginContext(3989, 55, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(4046, 71, false); #line 82 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" Write(post.PostTypeNavigation.Name + " " + post.RealEstaleTypeNavigation.Name); #line default #line hidden EndContext(); BeginContext(4118, 138, true); WriteLiteral("</td>\r\n\r\n\r\n <td style=\"display: inline-flex\">\r\n "); EndContext(); BeginContext(4256, 234, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca24916", async() => { BeginContext(4327, 156, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-info\" value=\"Xem\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); AddHtmlAttributeValue("", 4270, "/", 4270, 1, true); #line 86 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" AddHtmlAttributeValue("", 4271, post.PostId, 4271, 12, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4490, 2, true); WriteLiteral("\r\n"); EndContext(); #line 89 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" if (post.Status == 1 || post.Status == 2) { #line default #line hidden BeginContext(4635, 52, true); WriteLiteral(" "); EndContext(); BeginContext(4687, 342, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca27657", async() => { BeginContext(4857, 165, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-danger\" value=\"Ẩn\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_9.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_9); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 91 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" WriteLiteral(post.PostId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_11.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_11); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5029, 2, true); WriteLiteral("\r\n"); EndContext(); #line 94 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" } #line default #line hidden BeginContext(5082, 98, true); WriteLiteral(" </td>\r\n </tr>\r\n"); EndContext(); #line 97 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Views\Post\Manager.cshtml" } #line default #line hidden BeginContext(5219, 226, true); WriteLiteral(" </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n\r\n"); EndContext(); BeginContext(5445, 68, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca32683", 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_12); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5513, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5515, 78, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca33864", 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_13); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5593, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5595, 76, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca35045", 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_14); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5671, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5673, 75, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca36226", 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_15); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5748, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5750, 63, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca37407", 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_16); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5813, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5815, 65, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca38588", 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_17); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5880, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5882, 63, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca39769", 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_18); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(5945, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(5947, 71, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca40950", 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_19); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6018, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(6020, 71, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca42131", 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_20); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6091, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(6093, 72, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca43312", 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_21); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6165, 2, true); WriteLiteral("\r\n"); EndContext(); BeginContext(6167, 69, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("script", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d70bd5357660c6bfcb18eff0dd6cb3928436efca44493", 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_22); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(6236, 148, true); WriteLiteral("\r\n\r\n<script type=\"text/javascript\">\r\n $(document).ready(function () {\r\n $(\'#bootstrap-data-table-export\').DataTable();\r\n });\r\n</script>"); EndContext(); }
public PostModel() { db = new RealEstateSystemContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(45, 2, true); WriteLiteral("\r\n"); EndContext(); #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" ViewData["Title"] = "Tất cả bài đăng | Admin BDS Miền Trung"; Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; RealEstateSystemContext _context = new RealEstateSystemContext(); var notice = TempData["Notice"]; if (notice != null) { ViewData["Notice"] = notice; } #line default #line hidden BeginContext(370, 103, true); WriteLiteral("\r\n<div class=\"animated fadeIn\">\r\n <div class=\"row\">\r\n\r\n <div class=\"col-md-12\">\r\n "); EndContext(); BeginContext(473, 155, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5cc4239f9a423bdfeb65741bcc2075e76c2e5f087092", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); #line 21 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = (ViewData["Notice"] == null ? null : ViewData["Notice"].ToString()); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(628, 792, true); WriteLiteral(@" <div class=""card""> <div class=""card-header""> <strong class=""card-title"">Quản lý bài đăng</strong> </div> <div class=""card-body""> <table id=""bootstrap-data-table"" class=""table table-striped table-bordered""> <thead> <tr> <th>Trạng thái</th> <th>Tiêu đề</th> <th>Loại bài đăng</th> <th>Tác giả</th> <th>Thời gian đăng</th> <th></th> </tr> </thead> <tbody> "); EndContext(); #line 39 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" foreach (var post in Model) { #line default #line hidden BeginContext(1509, 38, true); WriteLiteral(" <tr>\r\n"); EndContext(); #line 42 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" DateTime posttime = post.PostTime ?? DateTime.Now; string status = _context.Status.Find(post.Status).StatusType; if (post.Status == 1) { #line default #line hidden BeginContext(1846, 66, true); WriteLiteral(" <td class=\"text-blue\">"); EndContext(); BeginContext(1913, 6, false); #line 46 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(1919, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 47 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" } else if (post.Status == 2) { #line default #line hidden BeginContext(2080, 67, true); WriteLiteral(" <td class=\"text-green\">"); EndContext(); BeginContext(2148, 6, false); #line 50 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(2154, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 51 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" } else { #line default #line hidden BeginContext(2293, 65, true); WriteLiteral(" <td class=\"text-red\">"); EndContext(); BeginContext(2359, 6, false); #line 54 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(status); #line default #line hidden EndContext(); BeginContext(2365, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 55 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" } #line default #line hidden BeginContext(2454, 40, true); WriteLiteral(" <td>"); EndContext(); BeginContext(2495, 11, false); #line 57 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(post.Tittle); #line default #line hidden EndContext(); BeginContext(2506, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(2555, 71, false); #line 58 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(post.PostTypeNavigation.Name + " " + post.RealEstaleTypeNavigation.Name); #line default #line hidden EndContext(); BeginContext(2627, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(2676, 50, false); #line 59 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(post.Author.LastName + " " + post.Author.Firstname); #line default #line hidden EndContext(); BeginContext(2727, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(2776, 40, false); #line 60 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" Write(posttime.ToString("dd/MM/yyyy hh:mm tt")); #line default #line hidden EndContext(); BeginContext(2817, 118, true); WriteLiteral("</td>\r\n <td style=\"display: inline-flex\">\r\n "); EndContext(); BeginContext(2935, 218, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5cc4239f9a423bdfeb65741bcc2075e76c2e5f0815210", async() => { BeginContext(3006, 140, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-info\" value=\"Xem\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "action", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); AddHtmlAttributeValue("", 2949, "/", 2949, 1, true); #line 62 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" AddHtmlAttributeValue("", 2950, post.PostId, 2950, 12, false); #line default #line hidden EndAddHtmlAttributeValues(__tagHelperExecutionContext); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3153, 2, true); WriteLiteral("\r\n"); EndContext(); #line 65 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" if (post.Status == 1 || post.Status == 2) { #line default #line hidden BeginContext(3282, 44, true); WriteLiteral(" "); EndContext(); BeginContext(3326, 415, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "5cc4239f9a423bdfeb65741bcc2075e76c2e5f0817933", async() => { BeginContext(3585, 149, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-danger\" value=\"Ẩn\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 67 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" WriteLiteral(post.PostId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-returnUrl", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = (string)__tagHelperAttribute_5.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3741, 2, true); WriteLiteral("\r\n"); EndContext(); #line 71 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" } #line default #line hidden BeginContext(3786, 82, true); WriteLiteral(" </td>\r\n </tr>\r\n"); EndContext(); #line 74 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Home\Search.cshtml" } #line default #line hidden BeginContext(3899, 146, true); WriteLiteral(" </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n"); EndContext(); }
public CustomerModel() : base() { db = new RealEstateSystemContext(); }
#pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { BeginContext(74, 2, true); WriteLiteral("\r\n"); EndContext(); #line 4 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" ViewData["Title"] = "Quản lý người dùng | Admin BDS Miền Trung"; Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; RealEstateSystemContext _context = new RealEstateSystemContext(); var notice = TempData["Notice"]; if (notice != null) { ViewData["Notice"] = notice; } #line default #line hidden BeginContext(402, 103, true); WriteLiteral("\r\n<div class=\"animated fadeIn\">\r\n <div class=\"row\">\r\n\r\n <div class=\"col-md-12\">\r\n "); EndContext(); BeginContext(505, 155, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("partial", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "017f4e5f3d1af5f3613e306dd67a9d923d9658c88692", async() => { } ); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.PartialTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Name = (string)__tagHelperAttribute_0.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0); #line 21 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model = (ViewData["Notice"] == null ? null : ViewData["Notice"].ToString()); #line default #line hidden __tagHelperExecutionContext.AddTagHelperAttribute("model", __Microsoft_AspNetCore_Mvc_TagHelpers_PartialTagHelper.Model, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(660, 784, true); WriteLiteral(@" <div class=""card""> <div class=""card-header""> <strong class=""card-title"">Quản lý người dùng</strong> </div> <div class=""card-body""> <table id=""bootstrap-data-table"" class=""table table-striped table-bordered""> <thead> <tr> <th>Họ tên</th> <th>Email</th> <th>Địa chỉ</th> <th>Số điện thoại</th> <th>Trạng thái</th> <th></th> </tr> </thead> <tbody> "); EndContext(); #line 39 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" foreach (var customer in Model) { #line default #line hidden BeginContext(1537, 80, true); WriteLiteral(" <tr>\r\n\r\n <td>"); EndContext(); BeginContext(1619, 44, false); #line 43 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" Write(customer.LastName + " " + customer.Firstname); #line default #line hidden EndContext(); BeginContext(1664, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(1713, 22, false); #line 44 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" Write(customer.Account.Email); #line default #line hidden EndContext(); BeginContext(1736, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(1784, 16, false); #line 45 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" Write(customer.Address); #line default #line hidden EndContext(); BeginContext(1800, 47, true); WriteLiteral("</td>\r\n <td>"); EndContext(); BeginContext(1848, 20, false); #line 46 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" Write(customer.PhoneNumber); #line default #line hidden EndContext(); BeginContext(1868, 7, true); WriteLiteral("</td>\r\n"); EndContext(); #line 47 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" if (customer.Block.Count != 0 && (customer.Block.Last().UnBlockDate == null || customer.Block.Last().UnBlockDate > DateTime.Now)) { #line default #line hidden BeginContext(2129, 92, true); WriteLiteral(" <td class=\"text-red text-center\">Bị khóa</td>\r\n"); EndContext(); #line 51 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" } else { #line default #line hidden BeginContext(2353, 100, true); WriteLiteral(" <td class=\"text-green text-center\">Đang hoạt động</td>\r\n"); EndContext(); #line 55 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" } #line default #line hidden BeginContext(2535, 111, true); WriteLiteral(" <td style=\"display: inline-flex\">\r\n "); EndContext(); BeginContext(2646, 292, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "017f4e5f3d1af5f3613e306dd67a9d923d9658c815054", async() => { BeginContext(2791, 140, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-info\" value=\"Xem\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_1.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 58 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" WriteLiteral(customer.CustomerId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(2938, 42, true); WriteLiteral("\r\n "); EndContext(); BeginContext(2980, 292, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "017f4e5f3d1af5f3613e306dd67a9d923d9658c818651", async() => { BeginContext(3122, 143, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-primary\" value=\"Sửa\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_6.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_6); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 61 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" WriteLiteral(customer.CustomerId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_4.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3272, 2, true); WriteLiteral("\r\n"); EndContext(); #line 64 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" if (customer.Block.Count != 0 && (customer.Block.Last().UnBlockDate == null || customer.Block.Last().UnBlockDate > DateTime.Now)) { #line default #line hidden BeginContext(3489, 44, true); WriteLiteral(" "); EndContext(); BeginContext(3533, 431, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "017f4e5f3d1af5f3613e306dd67a9d923d9658c822730", async() => { BeginContext(3805, 152, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-dark\" value=\"Mở Khóa\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_7.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_7); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 66 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" WriteLiteral(customer.CustomerId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_9); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(3964, 2, true); WriteLiteral("\r\n"); EndContext(); #line 70 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" } else { #line default #line hidden BeginContext(4098, 44, true); WriteLiteral(" "); EndContext(); BeginContext(4142, 428, false); __tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "017f4e5f3d1af5f3613e306dd67a9d923d9658c826825", async() => { BeginContext(4409, 154, true); WriteLiteral("\r\n <input type=\"submit\" class=\"btn-danger\" value=\"Khóa TK\" />\r\n "); EndContext(); } ); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper>(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_10.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_10); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Controller = (string)__tagHelperAttribute_2.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Area = (string)__tagHelperAttribute_3.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3); if (__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues == null) { throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("asp-route-id", "Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper", "RouteValues")); } BeginWriteTagHelperAttribute(); #line 73 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" WriteLiteral(customer.CustomerId); #line default #line hidden __tagHelperStringValueBuffer = EndWriteTagHelperAttribute(); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"] = __tagHelperStringValueBuffer; __tagHelperExecutionContext.AddTagHelperAttribute("asp-route-id", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["id"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_8.Value; __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_8); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_11); __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5); await __tagHelperRunner.RunAsync(__tagHelperExecutionContext); if (!__tagHelperExecutionContext.Output.IsContentModified) { await __tagHelperExecutionContext.SetOutputContentAsync(); } Write(__tagHelperExecutionContext.Output); __tagHelperExecutionContext = __tagHelperScopeManager.End(); EndContext(); BeginContext(4570, 2, true); WriteLiteral("\r\n"); EndContext(); #line 77 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" } #line default #line hidden BeginContext(4615, 82, true); WriteLiteral(" </td>\r\n </tr>\r\n"); EndContext(); #line 80 "C:\Users\Thuy Dao Xuan\Desktop\Real_Estate_System\Source Code\.NET Core\RES\RES\Areas\Admin\Views\Customer\Index.cshtml" } #line default #line hidden BeginContext(4728, 142, true); WriteLiteral(" </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"); EndContext(); }