Disco.Services.DeviceDataStoreExtensions.ImageFilePath C# (CSharp) Method

ImageFilePath() public static method

public static ImageFilePath ( this deviceModel ) : string
deviceModel this
return string
        public static string ImageFilePath(this DeviceModel deviceModel)
        {
            var configCache = new Disco.Data.Configuration.SystemConfiguration(null);

            var deviceModelImagesDataStore = DataStore.CreateLocation(configCache, "DeviceModelImages");

            return Path.Combine(deviceModelImagesDataStore, string.Format("{0}.png", deviceModel.Id));
        }