コード例 #1
0
        public ActionResult GetEventsItems()
        {
            //IDAL dal = (new DALFactory()).GetInstance();
            SharePointDAL       dal           = new SharePointDAL();
            List <AcademyEvent> academyEvents = dal.GetEvents();         //Get the list of events

            return(PartialView("_Events", academyEvents));
        }
コード例 #2
0
 public ActionResult NewsEvents()
 {
     try
     {
         //  IDAL dal = (new DALFactory()).GetInstance();
         SharePointDAL dal         = new SharePointDAL();
         string        noImagePath = Server.MapPath(Url.Content("~/Images/noimage.png"));
         ViewBag.annclst    = dal.GetNews(noImagePath);
         ViewBag.EventsList = dal.GetEvents();
         ViewBag.RssFeedVB  = dal.GetRSSFeeds();
     }
     catch (Exception ex)
     {
         UserManager user = (UserManager)Session["CurrentUser"];
         LogHelper.AddLog(new LogEntity(AppConstant.PartitionError, user.EmailID.ToString(), AppConstant.ApplicationName, "News, NewsEvents", ex.Message, ex.StackTrace));
     }
     return(View());
 }