/// <summary>
        /// 获取单条信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public JsonResult GetOneStorage()
        {
            GetStorageRequest    request  = new GetStorageRequest();
            GetOneStorageRequest request1 = new GetOneStorageRequest();
            var uid  = Request["Id"];
            var list = (bll.GetStorage(request)).Storagelist;
            var Id   = Convert.ToInt32(uid);

            list = list.Where(s => s.StorageId == Id).ToList();
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        /// <summary>
        /// 获取一条存储信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public GetOneStorageResponse GetOneStorage(GetOneStorageRequest request)
        {
            GetOneStorageResponse response = new GetOneStorageResponse();
            var res = dal.GetOneStorage(request.id); //storages

            if (res == null)
            {
                response.Message = "请求失败";
            }
            else
            {
                response.storages = res;
            }
            return(response);
        }
示例#3
0
 /// <summary>
 /// 获取一条存储信息
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public GetOneStorageResponse GetOneStorage(GetOneStorageRequest request)
 {
     return(ApiRequestHelper.Post <GetOneStorageRequest, GetOneStorageResponse>(request));
 }
示例#4
0
 public GetOneStorageResponse GetOneStorage(GetOneStorageRequest request)
 {
     return(bll.GetOneStorage(request));
 }