public async Task <ActionResult <List <TodoElement> > > Get()
        {
            try
            {
                List <TodoElement> result = await sqlService.Get();

                return(result);
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }
Exemple #2
0
 public IEnumerable <int> Get()
 {
     return(_sqlService.Get(new SqlQueryModel
     {
         Id = 1002,
         Repo = "Test",
         DlpQuery = new DlpQuery
         {
             Id = 5
         },
         WorkspaceQuery = new WorkspaceQuery
         {
             Id = 10
         }
     }));
 }