public bool AddComments(string userId, int ticketId, string commentText) { if (UserAndRolesRepository.CheckIfUserIsInRole(userId, "submitter")) { var result = TicketRepository.AddComment(userId, ticketId, commentText); if (result) { return(true); } else { return(false); } } else { return(false); } }