public static int GetStatusCode(StatusCore code) { return((int)Enum.ToObject(code.GetType(), code)); }
/// <summary> /// /// </summary> /// <param name="code"></param> public static void SetStatusCode(StatusCore code) { var responseCode = (int)Enum.ToObject(code.GetType(), code); SetStatusCode(responseCode); }