Exemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var leaveTypes = (await _service.FindAll()).ToList();
            var model      = leaveTypes.Select(LeaveTypeDto.CreateFrom);

            return(View(model));
        }