public bool CheckPostData(PostTopicData err)
        {
            var checkTheme = CheckPostTheme(err);
            var checkText  = CheckPostText(err);

            return(checkTheme && checkText);
        }
        public bool CheckPostText(PostTopicData err)
        {
            if (Text == "")
            {
                err.Text = "Text is required";
                return(false);
            }
            else if (Text.Length >= 1000)
            {
                err.Text = "Text is too long";
                return(false);
            }

            return(true);
        }
        public bool CheckPostTheme(PostTopicData err)
        {
            if (Theme == "")
            {
                err.Theme = "Theme is required";
                return(false);
            }
            else if (Theme.Length >= 100)
            {
                err.Theme = "Theme is too long";
                return(false);
            }

            return(true);
        }