Beispiel #1
0
        public static Institution ToModel(this InstitutionViewModel viewModel)
        {
            var model = new Institution();
            model.InjectFrom(viewModel);

            return model;
        }
Beispiel #2
0
 public void Update(Institution institution)
 {
     if (this.Validate(institution))
     {
         this._institutionRepository.Update(institution);
     }
 }
Beispiel #3
0
 public void Add(Institution institution)
 {
     if (this.Validate(institution))
     {
         this._institutionRepository.Add(institution);
         this._institutionRepository.Commit();
     }
 }
Beispiel #4
0
 private bool Validate(Institution institution)
 {
     return true;
 }