Exemple #1
0
        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));
        }
Exemple #2
0
 public async Task <PersonPhoto> Handle(GetPersonPhotoQuery request, CancellationToken cancellationToken)
 {
     return(await _table.GetAsync(request.UserId));
 }