//-------------------------------------------------------
        /// <summary>
        
/// 
        
/// </summary>
        
/// <param name="id"></param>
        
/// <returns></returns>
        //-------------------------------------------------------
        public ActionResult TyousaPhotoDownload(int id)
        {
            try
            {
                TyousaTyousaModel model = new TyousaTyousaModel();
                byte[] photo = model.GetPhoto(id);
                model.GetEntity(id);
                string name = model.Entity.アイテムID + "_" + model.Entity.ID+".jpg";
                return File(photo, "application/octet-stream", name);
            }
            catch
            {
                return new EmptyResult();
            }
        }
posted on 2014-07-16 09:20 Ying-er 阅读(365) 评论(0)  编辑  收藏 所属分类: .Net

只有注册用户登录后才能发表评论。


网站导航: