public SummariesController(IEnterpriseServiceAdapter serviceAdapter)
 {
     _serviceAdapter = serviceAdapter;
     //ToDo: Разобраться, почему не ловится ошибка.
     try
     {
         _enterpriseName = _serviceAdapter.GetEnterpriseName();
         ViewBag.EnterpriseName = _enterpriseName;
         ViewBag.FederalSubjectName = _serviceAdapter.GetFederalSubjectName();
         ViewBag.FederalDistrictName = _serviceAdapter.GetFederalDistrictName();
     }
     catch(Exception)
     {}
 }
Exemple #2
0
 public PeopleController(IEnterpriseServiceAdapter enterpriseServiceAdapter)
 {
     _enterpriseAdapter = enterpriseServiceAdapter;
 }