public AssociatorViewModel(Associator associator, Repository repository) { this._repository = repository; this._model = associator; IsEdit = true; this.ChooseBirthday = associator.Birthday; this.ChooseRegistration = associator.Registration; }
private long GetCurrentUserId() { var email = User.Identity.Name; return(Associator.ConvertToId(email)); }
public AssociatorViewModel(Repository repository) { this._repository = repository; this._model = new Associator(); }