public async Task <IEnumerable <RankResource> > ListAsync() // { //get data form _employeeService var rank = await _rankService.ListAsync(); //data to add Employee View Table using AutoMapper var resources = _mapper.Map <IEnumerable <Rank>, IEnumerable <RankResource> >(rank); //show EmployeeAttendence View Table return(resources); }
// GET: Ranks public async Task <IActionResult> Index(RankSearchModel searchModel) { var model = await _rankService.ListAsync(searchModel); return(View(model)); }