public IActionResult GetDocumentTypes()
 {
     return(getDTsQuery
            .Execute()
            .Match(
                x => Ok(x),
                ex => StatusCode(500, ex)));
 }
Exemple #2
0
 public IActionResult GetAllDT()
 => getAllDTQuery.Execute().Match(
     Succ: Ok,
     Fail: ex => StatusCode(500, ex));
Exemple #3
0
 public IActionResult GetAll()
 => getAllQuery.Execute().Match(
     Ok,
     ex => StatusCode(500, ex));