public IHttpActionResult CreateComment(int id, TicketCommentInputModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _ticketsService.CreateTicketComment(id, model); return(Ok()); }
public void CreateTicketComment(int id, TicketCommentInputModel model) { var command = new CreateTicketCommentCommand(id, model.Comment, model.UserLoginName); _bus.Send(command); }