public static Institution ToModel(this InstitutionViewModel viewModel) { var model = new Institution(); model.InjectFrom(viewModel); return model; }
public void Update(Institution institution) { if (this.Validate(institution)) { this._institutionRepository.Update(institution); } }
public void Add(Institution institution) { if (this.Validate(institution)) { this._institutionRepository.Add(institution); this._institutionRepository.Commit(); } }
private bool Validate(Institution institution) { return true; }