Exemple #1
0
        public async Task <MobileServiceFile> AddItemImageAsync(TodoItem item, string image)
        {
            var path = await fileProvider.CopyItemFileAsync(item.Id, image);

            var fileName = Path.GetFileName(path);
            var msFile   = await itemTable.AddFileAsync(item, fileName);

            return(msFile);
        }