public int Test2_AutoCheck(string stringVal, int intVal, DateTime dtValue, decimal money, Guid guid) { //if( System.Web.HttpContext.Current.Request.ContentType.StartsWith("application/json") ) // dtValue = dtValue.ToLocalTime(); TestSerializerModel model = TestSerializerModel.Create(stringVal, intVal, dtValue, money, guid); string xml1 = model.ToString(); string xml2 = s_lastTestSerializerModel.ToString(); return(xml1 == xml2 ? 1 : 0); }
public string Test2(string stringVal, int intVal, DateTime dtValue, decimal money, Guid guid) { TestSerializerModel model = TestSerializerModel.Create(stringVal, intVal, dtValue, money, guid); return(model.ToString()); }