public async Task <ActionResult> GetByDataSource(int source) { var ingredientList = await _ingredientRepository.GetByDataSource(source); if (ingredientList == null) { return(StatusCode(403, new ErrorModel { ErrorMessage = String.Format(ERROR_MESSAGE_SOURCE, source) })); } return(StatusCode(200, ingredientList)); }