Exemple #1
0
        public ActionResult Index(AboutUsViewModel auViewModel)
        {
            try
            {
                auViewModel.aboutus = _aboutusMan.Get_About_Us_By_Id(1);

                auViewModel.aboutus.Header_Image_Url = ConfigurationManager.AppSettings["Upload_Image_Path"].ToString() + @"\" + auViewModel.aboutus.File_Type_Str + @"\" + auViewModel.aboutus.Header_Image_Url;
            }
            catch (Exception ex)
            {
                auViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));

                Logger.Error("AboutUs Controller - Index: " + ex.ToString());
            }

            return(View("Index", auViewModel));
        }
Exemple #2
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));
        }