示例#1
0
        public async Task <CandidatePlacementViewModel> UpdateCandidatePlacement(CandidatePlacementViewModel data)
        {
            try
            {
                await Task.Run(() => ManageCandidatePlacement.UpdateCandidatePlacement(data.ConvertTotblCandidatePlacement()));

                return(data);
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#2
0
        public async Task <CandidatePlacementViewModel> GetPlacementDetails(long PlacementId)
        {
            try
            {
                tblCandidatePlacement res = await Task.Run(() => ManageCandidatePlacement.GetPlacementDetails(PlacementId));

                return(res.ConvertToCandidatePlacementViewModel());
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#3
0
        public async Task <CandidatePlacementViewModel> CreateCandidatePlacement(CandidatePlacementViewModel data)
        {
            try
            {
                tblCandidatePlacement res = await Task.Run(() => ManageCandidatePlacement.InsertCandidatePlacement(data.ConvertTotblCandidatePlacement()));

                return(res.ConvertToCandidatePlacementViewModel());
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#4
0
        public async Task <List <CandidatePlacementViewModel> > GetPlacedCandidates()
        {
            try
            {
                List <tblCandidatePlacement> res = await Task.Run(() => ManageCandidatePlacement.GetAllPlacements());

                return(res.Select(x => x.ConvertToCandidatePlacementViewModel()).ToList());
            }
            catch (Exception)
            {
                throw;
            }
        }