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, }); } }
public MainServiceFeedbackClient GetFeedbackClient() { return(m_communication.GetMainServiceFeedbackClient()); }