Ejemplo n.º 1
0
        public ActionResult SetAvatar(string avatarId)
        {
            var cmd = new SetProfileAvatar
            {
                Id       = UserId,
                AvatarId = avatarId
            };

            Send(cmd);
            return(Json(new { avatarId }));
        }
 public void Handle(SetProfileAvatar c)
 {
     _repository.Perform(c.Id, user => user.SetProfileAvatar(c.AvatarId));
 }