This commit is contained in:
Roland Fieger
2021-10-12 10:55:47 +02:00
parent c384e3bdca
commit fdc816624e
6 changed files with 74 additions and 25 deletions

View File

@@ -26,7 +26,10 @@ namespace FwSearchApi.Controllers
public async Task<JsonResult> GetAllLookups()
{
var result = await _lookupLogic.GetAllLookups();
_logger.LogInformation($"Lookups zur Verf<72>gung gestellt von {nameof(GetAllLookups)}");
if (result.GeneralResult != Datamodels.BusinessModels.GeneralResults.Success) {
throw new System.Exception("das war wohl nix");
}
_logger.LogInformation($"Lookups zur Verf<72>gung gestellt von {nameof(GetAllLookups)}");
return new JsonResult(result);
}