示例#1
0
        public async Task <ObjectiveViewModel> GetAsync(int id)
        {
            ObjectiveDTO objectiveDto = await objectiveService.GetObjectiveAsync(id);

            var objective = mapper.Map <ObjectiveDTO, ObjectiveViewModel>(objectiveDto);

            return(objective);
        }