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