Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
private async Task AddImageAsync(object obj) { string fileId = Guid.NewGuid().ToString(); var photo = await _fileHelper.SelectImageAsync(fileId); if (photo != null) { var image = new ImageReference { Id = fileId, CategoryId = _category.Id, FileName = photo }; await _dataService.AddImage(image); Images.Add(new ImageReferenceViewModel(image, _fileHelper)); } }