Exemplo n.º 1
0
        public ActionResult Feedback(FeedbackViewModel model)
        {
            if (!ModelState.IsValid)
            {
                m_feedbacksManager.FillViewModel(model, StaticTexts.TextHomeFeedback, GetFeedbackFormIdentification());
                return(View(model));
            }

            m_feedbacksManager.CreateFeedback(model, FeedbackCategoryEnumContract.None, GetMainServiceClient(), IsUserLoggedIn(), GetUserName());
            return(View("Feedback/FeedbackSuccess"));
        }
Exemplo n.º 2
0
        public ActionResult Feedback(FeedbackViewModel model)
        {
            if (!ModelState.IsValid)
            {
                m_feedbacksManager.FillViewModel(model, StaticTexts.TextHomeFeedback, "home", GetFeedbackFormIdentification());
                return(View(model));
            }

            m_feedbacksManager.CreateFeedback(model, FeedbackCategoryEnumContract.Tools, PortalTypeValue, IsUserLoggedIn());
            return(View("Feedback/FeedbackSuccess"));
        }