MonocleGiraffe.Portable.Models.GalleryItem.StartDownload C# (CSharp) Method

StartDownload() private method

private StartDownload ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        private async Task StartDownload()
        {
            //We shouldn't be using container this deep down in the code. But whatever.
            var vm = SimpleIoc.Default.GetInstance<IViewModelLocator>().TransfersViewModel.DownloadsVM;
            if (ItemType == GalleryItemType.Album)
            {
                foreach (var item in AlbumImages)
                {
                    var url = item.IsAnimated ? item.Mp4 : item.Link;
                    var task = vm.StartDownload(url);
                }
            }
            else
            {
                var url = IsAnimated ? Mp4 : Link;
                await vm.StartDownload(url);
            }
        }