/// <summary>
        ///
        /// </summary>
        /// <param name="answer"></param>
        /// <param name="priorities"></param>
        /// <returns></returns>
        internal static string Priority(string answer, ICollection <KeyValueEntity> priorities)
        {
            var list = new List <Payload>();

            foreach (var priority in priorities)
            {
                list.Add(new Payload
                {
                    Title         = priority.Text,
                    Message       = priority.Text,
                    ReplyMetadata = new ReplyMetadata
                    {
                        ActionRequest = "HelpDeskTicketBooked",
                        SelectedValue = priority.Id.ToString(),
                    }
                });
            }
            var wehbookResponse = JoyResponseMessage.JoyJsonMessage(answer, false, 6, list);

            return(wehbookResponse);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="answer"></param>
        /// <param name="categories"></param>
        /// <returns></returns>

        internal static string CategoryMessage(string answer, ICollection <CategoryViewModel> categories)
        {
            var list = new List <Payload>();

            foreach (var category in categories)
            {
                list.Add(new Payload
                {
                    Title         = category.CategoryName,
                    Message       = category.CategoryName,
                    ReplyMetadata = new ReplyMetadata
                    {
                        ActionRequest = "HelpDeskTicket.HelpDeskSubCategory",
                        SelectedValue = category.CategoryId.ToString()
                    }
                });
            }
            var wehbookResponse = JoyResponseMessage.JoyJsonMessage(answer, false, 6, list);

            return(wehbookResponse);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="answer"></param>
        /// <param name="subCategories"></param>
        /// <returns></returns>
        internal static string SubCategoryMessage(string answer, ICollection <SubcategoryEntity> subCategories)
        {
            var list = new List <Payload>();

            foreach (var subCategory in subCategories)
            {
                list.Add(new Payload
                {
                    Title         = subCategory.SubcategoryName,
                    Message       = $"Priority of {subCategory.SubcategoryName}",
                    ReplyMetadata = new ReplyMetadata
                    {
                        ActionRequest = "HelpDeskTicketPriority",
                        SelectedValue = subCategory.SubcategoryId.ToString(),
                    }
                });
            }
            var wehbookResponse = JoyResponseMessage.JoyJsonMessage(answer, false, 6, list);

            return(wehbookResponse);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="userResponse"></param>
        /// <returns></returns>

        internal static string Message(string userResponse)
        {
            var list = new List <Payload>();

            list.Add(new Payload
            {
                Title         = "Raise Helpdesk Ticket",
                Message       = "Helpdesk Ticket",
                ReplyMetadata = new ReplyMetadata
                {
                    ActionRequest = "input.helpDesk"
                }
            });

            list.Add(new Payload {
                Title = "View Payslip", Message = "Sure. For which month do you want?"
            });
            list.Add(new Payload {
                Title = "Show absent days", Message = "Sure. "
            });
            var wehbookResponse = JoyResponseMessage.JoyJsonMessage(userResponse, false, 6, list);

            return(wehbookResponse);
        }