//-------------------------------------------------------
                  /// <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 閱讀(372) 評論(0)  編輯  收藏 所屬分類: .Net
          主站蜘蛛池模板: 登封市| 银川市| 攀枝花市| 浏阳市| 三原县| 桃园县| 浪卡子县| 博白县| 梁平县| 九龙坡区| 通化市| 花莲市| 夏津县| 凤城市| 华宁县| 宜黄县| 泽普县| 黑山县| 中方县| 邮箱| 江油市| 碌曲县| 鸡泽县| 长丰县| 醴陵市| 崇州市| 纳雍县| 青铜峡市| 辽宁省| 新沂市| 寿光市| 襄樊市| 海安县| 镶黄旗| 新宾| 昂仁县| 夏邑县| 满洲里市| 米泉市| 龙南县| 扎鲁特旗|