public async Task <IActionResult> GetAllLists([FromQuery] int offset = 0, [FromQuery] int limit = Int32.MaxValue) { Validator.Assert(offset >= 0 && limit >= 0, ValidationAreas.InputParameters); var lists = await _listsRepository.GetAll(offset, limit); return(Ok(lists)); }
public async Task <ActionResult <List <Lists> > > GetAll() { return(await _lists.GetAll()); }