Пример #1
0
 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()));
     }
 }
Пример #2
0
 public async Task <IEnumerable <PermisoApp> > List()
 {
     return(await _permisoService.List());
 }