Exemplo n.º 1
0
 public virtual JsonResult Put(MyPreference model)
 {
     var command = new UpdateMyPreference(User, Request.AnonymousID);
     Mapper.Map(model, command);
     _preferences.Handle(command);
     return Json(null);
 }
Exemplo n.º 2
0
        public virtual JsonResult Put(MyPreference model)
        {
            var command = new UpdateMyPreference(User, Request.AnonymousID);

            Mapper.Map(model, command);
            _preferences.Handle(command);
            return(Json(null));
        }