// GET api/Nomenclature public IEnumerable <Nomenclature> Get() { var nomenclatureService = new NomenclatureService(); var nomenclature = nomenclatureService.GetAll(); return(nomenclature); }
public LayoutHelper( NomenclatureService nomenclatureService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, ICachedLookupService cls) { _nomenclatureService = nomenclatureService; _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; _cls = cls; }
public GovernorsGridViewModel(GovernorsDetailsDto dto, bool editMode, int?groupUId, int?establishmentUrn, NomenclatureService nomenclatureService, IEnumerable <LookupDto> nationalities, IEnumerable <LookupDto> appointingBodies) { _nomenclatureService = nomenclatureService; DomainModel = dto; EditMode = editMode; GroupUId = groupUId; Nationalities = nationalities; AppointingBodies = appointingBodies; EstablishmentUrn = establishmentUrn; CreateGrids(dto, dto.CurrentGovernors, false, groupUId, establishmentUrn); CreateGrids(dto, dto.HistoricalGovernors, true, groupUId, establishmentUrn); AlignGrids(); }
public GovernorController( IGovernorsReadService governorsReadService, NomenclatureService nomenclatureService, ICachedLookupService cachedLookupService, IGovernorsWriteService governorsWriteService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, ILayoutHelper layoutHelper) { _governorsReadService = governorsReadService; _nomenclatureService = nomenclatureService; _cachedLookupService = cachedLookupService; _governorsWriteService = governorsWriteService; _groupReadService = groupReadService; _establishmentReadService = establishmentReadService; _layoutHelper = layoutHelper; }
public GroupController( ICachedLookupService cachedLookupService, ISecurityService securityService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, IGroupsWriteService groupWriteService, ICompaniesHouseService companiesHouseService, NomenclatureService nomenclatureService) { _lookup = cachedLookupService; _securityService = securityService; _groupReadService = groupReadService; _establishmentReadService = establishmentReadService; _groupWriteService = groupWriteService; _companiesHouseService = companiesHouseService; _nomenclatureService = nomenclatureService; }
// DELETE api/Nomenclature/5 public void Delete(int id) { var nomenclatureService = new NomenclatureService(); nomenclatureService.Delete(id); }
// PUT api/Nomenclature/5 public void Put(int id, [FromBody] Nomenclature value) { var nomenclatureService = new NomenclatureService(); nomenclatureService.Update(value); }
// POST api/Nomenclature public void Post([FromBody] Nomenclature value) { var nomenclatureService = new NomenclatureService(); nomenclatureService.Insert(value); }
// GET api/Nomenclature/5 public Nomenclature Get(int id) { var nomenclatureService = new NomenclatureService(); return(nomenclatureService.GetById(id)); }
public NomenclatureController(NomenclatureService _dbHelper) { this._nomenclature = _dbHelper; }