Ejemplo n.º 1
0
        public ActionResult LatestReportsForNews()
        {
            var LatestPublishedReports = (from l in db.spLatestReport()
                                          select new ReportVM
            {
                FullDescription = System.Text.RegularExpressions.Regex.Replace(l.LongDescritpion, @"<[^>]+>|&nbsp;", "").Trim(),
                CategoryName = l.CategoryName,
                ReportId = l.ReportId,
                ReportTitle = l.ReportTitle,
                ReportUrl = l.ReportUrl,
                PriceSingleUser = l.SinglePrice,
                PublishingDate = Convert.ToDateTime(l.PublishingDate)
            }).ToList();

            return(PartialView(LatestPublishedReports));
        }