public string CancelNikePodForBS(NikePODForBSRequest request) { Response <NikePODForBSResponses> response = new Response <NikePODForBSResponses>() { Result = new NikePODForBSResponses() }; string str = ""; try { NikeAccessor accessor = new NikeAccessor(); int RowCount = 0; str = accessor.CancelNikePodForBS(request.PodCollection);//, request.PageIndex, request.PageSize,out RowCount response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; response.Exception = ex; } return(str); }
public Response <NikePODForBSResponses> GetNikePOD(NikePODForBSRequest request) { Response <NikePODForBSResponses> response = new Response <NikePODForBSResponses>() { Result = new NikePODForBSResponses() }; try { NikeAccessor accessor = new NikeAccessor(); int Rowcount = 0; response.Result.PodCollection = accessor.GetNikePOD(request.Condition, request.PageIndex, request.PageSize, out Rowcount);// response.Result.PageIndex = request.PageIndex; response.Result.PageCount = Rowcount % request.PageSize == 0 ? Rowcount / request.PageSize : Rowcount / request.PageSize + 1; response.Result.RowCount = Rowcount; response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.ErrorCode = ErrorCode.Technical; response.Exception = ex; } return(response); }