public async Task <ObjectiveViewModel> GetAsync(int id) { ObjectiveDTO objectiveDto = await objectiveService.GetObjectiveAsync(id); var objective = mapper.Map <ObjectiveDTO, ObjectiveViewModel>(objectiveDto); return(objective); }
public async Task <ObjectiveViewModel> GetAsync(int id) { ObjectiveDTO objectiveDto = await objectiveService.GetObjectiveAsync(id); var objective = mapper.Map <ObjectiveDTO, ObjectiveViewModel>(objectiveDto); return(objective); }