public async Task <PersonPhoto> Handle(UpdatePersonPhotoCommand request, CancellationToken cancellationToken) { var personPhoto = await _table.GetAsync(request.UserId); personPhoto.FileName = request.FileName; personPhoto.LastModified = DateTime.UtcNow; return(await _table.UpdateAsync(personPhoto)); }
public async Task <PersonPhoto> Handle(GetPersonPhotoQuery request, CancellationToken cancellationToken) { return(await _table.GetAsync(request.UserId)); }