コード例 #1
0
        public static string ToJson(ResponseStatusEnum status, string message)
        {
            var customResponseAlert = new CustomResponseAlert(status, message);

            return(JsonConvert.SerializeObject(customResponseAlert));
        }
コード例 #2
0
        public static string GetStringResponse(ResponseStatusEnum status, string message)
        {
            var customResponseAlert = new CustomResponseAlert(status, message);

            return(customResponseAlert.ToString());
        }