public void Create(Role rol) { try { _crudRequisito.Create(rol); } catch (Exception ex) { ExceptionManager.GetInstance().Process(ex); } }
public void CreateBus(Bus bus) { try { var registroBus = _busCrudFactory.Retrieve <Bus>(bus); if (registroBus != null) { throw new BusinessException(404); } _busCrudFactory.Create(bus); foreach (var requisito in bus.Requisitos) { _requisitoCrudFactory.Create(requisito); } } catch (Exception ex) { ExceptionManager.GetInstance().Process(ex); } }