Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public async Task <ActionResult <List <Lists> > > GetAll()
 {
     return(await _lists.GetAll());
 }