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