public IEnumerable <TodoViewModel> Get() { try { return(Mapper.Map <IEnumerable <Todo>, IEnumerable <TodoViewModel> >(_todoApp.GetAll())); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> Index() { var output = await _todoAppService.GetAll( new PagedAndSortedResultRequestDto() ); return(View(output)); }
public async Task <IEnumerable <TodoAppViewModel> > Get() { return(await _todoAppService.GetAll()); }
public IActionResult Index() { return(View(TodoAppService.GetAll())); }
public async Task <IActionResult> Index(int?pageNumber) { return(View(await PaginatedList <TodoAppViewModel> .CreateAsync(_todoAppService.GetAll().Result, pageNumber ?? 1, 4))); }