async void OnDeleteButtonClicked(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(_fileName)) { bool isDeleted = await _storageService.DeleteFileAsync(ContainerType.Text, _fileName); if (isDeleted) { OnGetFileListButtonClicked(sender, e); } } }
public async Task <IHttpActionResult> Delete(Guid siteId, string name) { await storageService.DeleteFileAsync(siteId.ToString(), name); return(Ok()); }