using System;
using System.Collections.Generic;
using System.Text;
namespace CB.TVUCenter
{
///
/// 输出结果
///
///
public class ViewResult
{
public ViewResult()
{
}
public int Code { get; set; }
public string Message { get; set; }
public T Entity { get; set; }
public override string ToString()
{
var sp = new StringBuilder(2000);
sp.Append("");
sp.Append("");
sp.AppendFormat("{0}
", this.Code);
if (0 != this.Code)
{
sp.AppendFormat("{0}", this.Message);
}
else
{
sp.AppendFormat("{0}", null == Entity ? "" : this.Entity.ToString());
}
sp.Append("");
return sp.ToString();
}
}
}