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

            return model;
        }
コード例 #2
0
        public bool AddInstitute(Institution entitty)
        {
            try
            {
                this._institutionRepository.Add(entitty);
                this._institutionRepository.Commit();
            }
            catch (Exception)
            {
                return false;
            }

            return true;
        }