public IActionResult GetById(int id) { Setting returnedSetting = settingRepository.GetByID(id); if (returnedSetting != null) { return(new OkObjectResult(returnedSetting)); } else { return(new NotFoundResult()); } }