Exemple #1
0
        public IHttpActionResult CreateComment(int id, TicketCommentInputModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _ticketsService.CreateTicketComment(id, model);
            return(Ok());
        }
Exemple #2
0
        public void CreateTicketComment(int id, TicketCommentInputModel model)
        {
            var command = new CreateTicketCommentCommand(id, model.Comment, model.UserLoginName);

            _bus.Send(command);
        }