public async Task <IActionResult> GetAllLocations()
        {
            LocationModel[] locations;
            locations = await _imisModules.GetMasterDataManagementModule().GetLocationLogic().GetAllLocations();

            return(Ok(locations));
        }
Exemple #2
0
        public async Task <IActionResult> GetAllLocations()
        {
            GetMasterDataResponse masterDataResponse = new GetMasterDataResponse()
            {
                Locations           = await _imisModules.GetMasterDataManagementModule().GetLocationLogic().GetAllLocations(),
                FamilyTypes         = await _imisModules.GetMasterDataManagementModule().GetFamilyTypeLogic().GetAllFamilyTypes(),
                ConfirmationTypes   = await _imisModules.GetMasterDataManagementModule().GetConfirmationTypeLogic().GetAllConfirmationTypes(),
                EducationLevels     = await _imisModules.GetMasterDataManagementModule().GetEducationLevelLogic().GetAllEducationLevels(),
                GenderTypes         = await _imisModules.GetMasterDataManagementModule().GetGenderTypeLogic().GetAllGenderTypes(),
                RelationTypes       = await _imisModules.GetMasterDataManagementModule().GetRelationTypeLogic().GetAllRelationTypes(),
                ProfessionTypes     = await _imisModules.GetMasterDataManagementModule().GetProfessionTypeLogic().GetAllProfessionTypes(),
                IdentificationTypes = await _imisModules.GetMasterDataManagementModule().GetIdentificationTypeLogic().GetAllIdentificationTypes(),
            };

            return(Ok(masterDataResponse));
        }