public async Task <CandidatePlacementViewModel> UpdateCandidatePlacement(CandidatePlacementViewModel data) { try { await Task.Run(() => ManageCandidatePlacement.UpdateCandidatePlacement(data.ConvertTotblCandidatePlacement())); return(data); } catch (Exception) { throw; } }
public async Task <CandidatePlacementViewModel> GetPlacementDetails(long PlacementId) { try { tblCandidatePlacement res = await Task.Run(() => ManageCandidatePlacement.GetPlacementDetails(PlacementId)); return(res.ConvertToCandidatePlacementViewModel()); } catch (Exception) { throw; } }
public async Task <CandidatePlacementViewModel> CreateCandidatePlacement(CandidatePlacementViewModel data) { try { tblCandidatePlacement res = await Task.Run(() => ManageCandidatePlacement.InsertCandidatePlacement(data.ConvertTotblCandidatePlacement())); return(res.ConvertToCandidatePlacementViewModel()); } catch (Exception) { throw; } }
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; } }