public static string ToJson(ViewResponseStatus status, string message) { var customResponseAlert = new ViewResponseAlert(status, message); return(JsonConvert.SerializeObject(customResponseAlert)); }
public static string GetStringResponse(ViewResponseStatus status, string message) { var customResponseAlert = new ViewResponseAlert(status, message); return(customResponseAlert.ToString()); }