Пример #1
0
        public JsonResult GetAllSavedJobs()
        {
            JXTNext_MemberGetSavedJobResponse response = _BLConnector.MemberGetSavedJobs() as JXTNext_MemberGetSavedJobResponse;

            return(new JsonResult {
                Data = response
            });
        }
Пример #2
0
        public bool GetList(out List <MemberSavedJobDisplayItem> displayItems)
        {
            JXTNext_MemberGetSavedJobResponse savedJobsResponse = _BLConnector.MemberGetSavedJobs() as JXTNext_MemberGetSavedJobResponse;

            if (!savedJobsResponse.Success)
            {
                displayItems = null;
                return(false);
            }

            displayItems = ConvertToDisplayItem(savedJobsResponse.SavedJobs);
            return(true);
        }
Пример #3
0
        private MemberSavedJob _getMemberSavedJob(int jobId)
        {
            JXTNext_MemberGetSavedJobResponse response = _BLConnector.MemberGetSavedJobs() as JXTNext_MemberGetSavedJobResponse;

            if (response.Success)
            {
                foreach (var item in response.SavedJobs)
                {
                    if (item.JobId == jobId)
                    {
                        return(item);
                    }
                }
            }

            return(null);
        }