/// <summary> /// Method to get propane grades /// </summary> /// <param name="error">Error message</param> /// <returns></returns> public List <PropaneGrade> GetPropaneGrades(out ErrorMessage error) { var propaneGrades = _fuelPumpService.GetPropaneGrades(); error = new ErrorMessage(); if (propaneGrades.Count == 0) { var offSet = _policyManager.LoadStoreInfo().OffSet; error = new ErrorMessage { MessageStyle = _resourceManager.CreateMessage(offSet, 38, 76, null) }; return(null); } CacheManager.AddPropaneGrades(propaneGrades); return(propaneGrades); }