Exemplo n.º 1
0
        /// <summary>
        /// 获取数据
        /// </summary>
        /// <param name="keyvalue"></param>
        /// <returns></returns>
        public ActionResult getEntity(string keyvalue)
        {
            var Bll  = new CarcOrCardBLL();
            var data = Bll.GetDetail(keyvalue);

            foreach (var item in data.Files)
            {
                if (!string.IsNullOrEmpty(item.FilePath))
                {
                    item.FilePath = string.Format("{0}://{1}{2}", this.Request.Url.Scheme, this.Request.Url.Host, Url.Content(item.FilePath));
                }
            }
            return(Content(data.ToJson()));
        }