Esempio n. 1
0
        public ActionResult AboutUs(HomeViewModel homeViewModel)
        {
            ViewBag.Page = "AboutUs";

            ViewBag.Title = "MagniPi | About us";

            AboutUsManager _aboutusMan = new AboutUsManager();

            try
            {
                homeViewModel.aboutus = _aboutusMan.Get_About_Us_By_Id(1);

                homeViewModel.aboutus.Header_Image_Url = ConfigurationManager.AppSettings["Upload_Image_Path"].ToString() + @"\" + homeViewModel.aboutus.File_Type_Str + @"\" + homeViewModel.aboutus.Header_Image_Url;
            }
            catch (Exception ex)
            {
                Logger.Error("Home Controller - AboutUs: " + ex.ToString());

                homeViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));
            }
            return(View("AboutUs", homeViewModel));
        }
Esempio n. 2
0
 public AboutUsController()
 {
     _aboutusMan = new AboutUsManager();
 }