using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EShangApiWisdom.Method
{
public class Common
{
///
/// 判断是否是偶数
///
///
///
public static bool IsOdd(int n)
{
return Convert.ToBoolean(n % 2 == 0);
}
///
/// 返回json数据结果对象
///
///
///
///
///
public static object ReturnJson(int code, string msg, object data = null)
{
Models.Result result = new Models.Result();
result.Result_Data = data;
result.Result_Code = code;
result.Result_Desc = msg;
return result;
}
}
}