public ActionResult Feedback() { var viewModel = m_feedbacksManager.GetBasicViewModel(GetFeedbackFormIdentification(), StaticTexts.TextHomeFeedback, GetEncryptedClient(), GetUserName()); return(View(viewModel)); //var pageStaticText = m_staticTextManager.GetRenderedHtmlText(StaticTexts.TextHomeFeedback); //var username = HttpContext.User.Identity.Name; //if (string.IsNullOrWhiteSpace(username)) //{ // return View(new FeedbackViewModel // { // PageStaticText = pageStaticText // }); //} //using (var client = GetEncryptedClient()) //{ // var user = client.FindUserByUserName(username); // var viewModel = new FeedbackViewModel // { // Name = string.Format("{0} {1}", user.FirstName, user.LastName), // Email = user.Email, // PageStaticText = pageStaticText // }; // return View(viewModel); //} }
public ActionResult Feedback() { var viewModel = m_feedbacksManager.GetBasicViewModel(GetFeedbackFormIdentification(), StaticTexts.TextHomeFeedback, IsUserLoggedIn(), "home", User); return(View(viewModel)); }
public ActionResult Feedback() { var viewModel = m_feedbacksManager.GetBasicViewModel(GetFeedbackFormIdentification(), StaticTexts.TextHomeFeedback, GetEncryptedClient(), GetUserName()); return(View(viewModel)); }