Esempio n. 1
0
        public async Task <IActionResult> List()
        {
            var dtos = await _deptService.List();

            var model = _mapper.Map <List <DeptViewModel> >(dtos);

            return(Ok(model));
        }