Exemplo n.º 1
0
        public void CreateFeedback(FeedbackViewModel model, FeedbackCategoryEnumContract category, PortalTypeContract portalType, bool isAuthenticated)
        {
            var client = m_communicationProvider.GetMainServiceFeedbackClient();

            if (isAuthenticated)
            {
                client.CreateFeedback(new CreateFeedbackContract
                {
                    FeedbackCategory = category,
                    Text             = model.Text,
                    PortalType       = portalType,
                });
            }
            else
            {
                client.CreateAnonymousFeedback(new CreateAnonymousFeedbackContract
                {
                    FeedbackCategory = category,
                    Text             = model.Text,
                    PortalType       = portalType,
                    AuthorEmail      = model.Email,
                    AuthorName       = model.Name,
                });
            }
        }
Exemplo n.º 2
0
 public MainServiceFeedbackClient GetFeedbackClient()
 {
     return(m_communication.GetMainServiceFeedbackClient());
 }