public IActionResult GetBySettingServiceId(int settingId, int serviceId) { Setting returnedSetting = settingRepository.GetBySettingServiceId(settingId, serviceId); if (returnedSetting != null) { return(new OkObjectResult(returnedSetting)); } else { return(new NotFoundResult()); } }