Ejemplo n.º 1
0
        public IHttpActionResult Get(int messageId, int TeamID)
        {
            TeamMessagingService teamMessagingService = CreateTeamMessagingService();
            var teamMessage = teamMessagingService.GetTeamMessageById(messageId, TeamID);

            return(Ok(teamMessage));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetAll(int TeamID)
        {
            TeamMessagingService teamMessagingService = CreateTeamMessagingService();
            var teamMessage = teamMessagingService.GetTeamMessages(TeamID);

            return(Ok(teamMessage));
        }
Ejemplo n.º 3
0
        private TeamMessagingService CreateTeamMessagingService()

        {
            var userID = Guid.Parse(User.Identity.GetUserId());

            var teamMessagingService = new TeamMessagingService(userID);

            return(teamMessagingService);
        }