public static Institution ToModel(this InstitutionViewModel viewModel) { var model = new Institution(); model.InjectFrom(viewModel); return model; }
public bool AddInstitute(Institution entitty) { try { this._institutionRepository.Add(entitty); this._institutionRepository.Commit(); } catch (Exception) { return false; } return true; }