public ViewResult List(int?offset, int?limit) { if (offset == null) { offset = 0; } if (limit == null) { limit = 10; } var checkLists = _checkListRepository.GetAll(offset.Value, limit.Value); var statuses = _sr.GetAll(); var clvm = new CheckListViewModel() { Checklists = checkLists, Statuses = statuses }; return(View(clvm)); }