Пример #1
0
 public static PromouterForm Bind(DataAccessLayer dataAccessLayer, Guid userId)
 {
     var binder = new FormPromouterToUsers(dataAccessLayer);
     var user = dataAccessLayer.GetById<PromouterUser>(userId);
     var model = new PromouterForm();
     binder.InverseLoad(user, model);
     return model;
 }
Пример #2
0
 public ActionResult Edit(Guid id)
 {
     var binder = new FormPromouterToUsers(DataAccessLayer);
     var user = DataAccessLayer.GetById<PromouterUser>(id);
     var model = new PromouterForm();
     binder.InverseLoad(user, model);
     return View(model);
 }