コード例 #1
0
        public async Task <LessonViewModel> GetByIdAsync(int id)
        {
            LessonViewModel l = new LessonViewModel();

            using (_repository = new LessonRepository())
            {
                l = Mapper.MapingLessonViewModel(await _repository.GetByIDAsync(id));
            }
            return(l);
        }