/// <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)); }
/// <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); }
/// <summary> /// 获取一条存储信息 /// </summary> /// <param name="request"></param> /// <returns></returns> public GetOneStorageResponse GetOneStorage(GetOneStorageRequest request) { return(ApiRequestHelper.Post <GetOneStorageRequest, GetOneStorageResponse>(request)); }
public GetOneStorageResponse GetOneStorage(GetOneStorageRequest request) { return(bll.GetOneStorage(request)); }