public SubSectorAdminController() { try { iSubSector = new SubSectorRepository(); } catch (Exception ex) { Utility.WriteLog("SubSectorAdminController (Admin)", null, "Error while initialize repository.", ex.ToString()); } }
public SectorUserController() { try { iSector = new SectorRepository(); iSubSector = new SubSectorRepository(); iSectorDetail = new SectorDetailRepository(); } catch (Exception ex) { Utility.WriteLog("SectorUserController (User)", null, "Error while initialize repository.", ex.ToString()); } }