示例#1
0
        public async Task <ActionResult> Get(int id)
        {
            Seminar seminar = await SeminarService.GetByIdAsync(id);

            return(ResultData(seminar.Mapper <SeminarDto>()));
        }
示例#2
0
        public ActionResult Get(int id)
        {
            Seminar seminar = SeminarService.GetById(id);

            return(ResultData(seminar.Mapper <SeminarOutputDto>()));
        }