Example #1
0
        public HttpResponseMessage TagSummary(TagSummaryRequestViewModel summaryViewModel)
        {
            //todo: remove the hardcoded account id and take it from authorization token.
            ContactTagSummaryResponse response =
                tagService.ContactSummaryByTag(new ContactTagSummaryRequest()
            {
                Tag     = summaryViewModel.Tag,
                AllTags = summaryViewModel.AllTags, AccountId = summaryViewModel.AccountId
            });

            return(Request.BuildResponse(response));
        }