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