public async Task <IActionResult> List(string name = "", DateTime?creationDateFrom = null, DateTime?creationDateTo = null) { if (IsSuperUser) { return(Ok(await _permisoService.List(new PermisoFilterDTO(name, creationDateFrom, creationDateTo), true))); } else { return(Ok(await _permisoService.List())); } }
public async Task <IEnumerable <PermisoApp> > List() { return(await _permisoService.List()); }