public mstRekananMulti Get()
        {
            mstRekananMulti RekananBySupervisorId = new mstRekananMulti();

            LogicalThreadContext.Properties["UserName"]   = User.Identity.Name;
            LogicalThreadContext.Properties["ActionType"] = "GetRekanan";
            _auditer.Info("Display List Rekanan");
            //re-populate MstRegion
            var myRegionColls = _repRegion.GetActive();

            RekananBySupervisorId.TypeOfRegionColls = myRegionColls;

            //re-populate MstTypeOfRekanan
            var myTypeOfRekananColls = _repTypeOfRekanan.GetActive();

            RekananBySupervisorId.TypeOfRekananColls = myTypeOfRekananColls;

            //re-populate MstTypeOfBadan
            var myTypeOfBadanColls = _repTypeOfBadanUsaha.GetActive();

            RekananBySupervisorId.TypeOfBadanUsahaColls = myTypeOfBadanColls;

            //re-populate MstWilayah
            var myWilayahColls = _repWilayah.GetActive();

            RekananBySupervisorId.WilayahColls = myWilayahColls;

            //re-populate MstKecamatan
            var myKecamatanColls = _repKecamatan.GetActive();

            RekananBySupervisorId.KecamatanColls  = myKecamatanColls;
            RekananBySupervisorId.MstRekananMulti = _repository.Get();
            return(RekananBySupervisorId);
        }
        public mstSubRegionMulti Get()
        {
            mstSubRegionMulti myDataMulti = new mstSubRegionMulti();

            myDataMulti.SubRegionColls = _repository.Get();
            myDataMulti.RegionColls    = _repRegion.Get();
            return(myDataMulti);
        }
        public IEnumerable <mstTypeOfBadanUsaha> Get()
        {
            //var owinUser = TryGetOwinUser();
            //var claim = TryGetClaim(owinUser, "email");
            //string email = claim.Value;

            return(_repository.Get());
        }
        public IHttpActionResult Get()
        {
            var list = _repository.Get();

            #if DEBUG
            list.ToList().ForEach(x => x.SetLinks());
            #endif
            return(Json(list));
        }
Esempio n. 5
0
        public IActionResult GetBrandById(long brandId)
        {
            Brand brand = _dataRepository.Get(brandId);

            if (brand == null)
            {
                return(NotFound("Brand record not found !!!"));
            }
            return(Ok(brand));
        }
        public IActionResult GetExperienceById(long experiencesId)
        {
            Experience experiences = _repository.Get(experiencesId);

            if (experiences == null)
            {
                return(NotFound("Experience record Not Found !!!"));
            }
            return(Ok(experiences));
        }
Esempio n. 7
0
        public IActionResult GetEmployerById(long employerId)
        {
            Employer employer = _repository.Get(employerId);

            if (employer == null)
            {
                return(NotFound("Employer record Not Found !!!"));
            }
            return(Ok(employer));
        }
Esempio n. 8
0
        public IActionResult GetStudentById(long studentId)
        {
            Student student = _dataRepository.Get(studentId);

            if (student == null)
            {
                return(NotFound("Student record not found !!!"));
            }
            return(Ok(student));
        }
Esempio n. 9
0
        public IActionResult GetAdminById(long adminId)
        {
            AdminPanel adminPanel = _dataRepository.Get(adminId);

            if (adminPanel == null)
            {
                return(NotFound("Admin record not found !!!"));
            }
            return(Ok(adminPanel));
        }
Esempio n. 10
0
        public IActionResult GetEducationById(long educationsId)
        {
            Education educations = _repository.Get(educationsId);

            if (educations == null)
            {
                return(NotFound("Education record Not Found !!!"));
            }
            return(Ok(educations));
        }
Esempio n. 11
0
        public IActionResult GetAddressById(long addressId)
        {
            Address address = _repository.Get(addressId);

            if (address == null)
            {
                return(NotFound("Address record Not Found !!!"));
            }
            return(Ok(address));
        }
Esempio n. 12
0
        public IActionResult GetRegistrationById(long registrationId)
        {
            Registration registration = _dataRepository.Get(registrationId);

            if (registration == null)
            {
                return(NotFound("Registration record not found !!!"));
            }
            return(Ok(registration));
        }
        public IActionResult GetTrainingById(long trainingsId)
        {
            Training trainings = _repository.Get(trainingsId);

            if (trainings == null)
            {
                return(NotFound("Training record Not Found !!!"));
            }
            return(Ok(trainings));
        }
Esempio n. 14
0
        public IActionResult GetOrganizationById(long organizationId)
        {
            Organization organization = _dataRepository.Get(organizationId);

            if (organization == null)
            {
                return(NotFound("Organization record not found !!!"));
            }
            return(Ok(organization));
        }
        public IActionResult GetTestById(long testId)
        {
            Test test = _dataRepository.Get(testId);

            if (test == null)
            {
                return(NotFound("Test record not found !!!"));
            }
            return(Ok(test));
        }
Esempio n. 16
0
        public IActionResult GetCustomerById(long customerId)
        {
            Customer customer = _dataRepository.Get(customerId);

            if (customer == null)
            {
                return(NotFound("Customer record not found !!!"));
            }
            return(Ok(customer));
        }
Esempio n. 17
0
        public IActionResult GetTestXQuestionById(long testXQuestionId)
        {
            TestXQuestion testXQuestion = _dataRepository.Get(testXQuestionId);

            if (testXQuestion == null)
            {
                return(NotFound("TestXQuestion record not found !!!"));
            }
            return(Ok(testXQuestion));
        }
        public trxRekananDocumentMulti Get()
        {
            trxRekananDocumentMulti DocumentByRekanan = new trxRekananDocumentMulti();
            var myTypeDocColls = _repTipeDoc.GetActive();

            DocumentByRekanan.TypeOfDocumentColls = myTypeDocColls;

            DocumentByRekanan.TrxRekananDocumentMaster = _repository.Get();
            return(DocumentByRekanan);
        }
        public IActionResult GetExhibitById(long exhibitId)
        {
            Exhibit exhibit = _dataRepository.Get(exhibitId);

            if (exhibit == null)
            {
                return(NotFound("Exhibit record not found !!!"));
            }
            return(Ok(exhibit));
        }
        public IActionResult GetStockById(long StockId)
        {
            Stock stock = _dataRepository.Get(StockId);

            if (stock == null)
            {
                return(NotFound("stock record not found !!!"));
            }
            return(Ok(stock));
        }
        public IActionResult GetTestXPaperById(long testXPaperId)
        {
            TestXPaper testXPaper = _dataRepository.Get(testXPaperId);

            if (testXPaper == null)
            {
                return(NotFound("TestXPaper record not found !!!"));
            }
            return(Ok(testXPaper));
        }
Esempio n. 22
0
        public IActionResult GetOrderDetailById(long orderDetailId)
        {
            OrderDetail orderDetail = _dataRepository.Get(orderDetailId);

            if (orderDetail == null)
            {
                return(NotFound("orderDetail record not found !!!"));
            }
            return(Ok(orderDetail));
        }
        public IActionResult GetQuestionXDurationById(long questionXDurationId)
        {
            QuestionXDuration questionX = _dataRepository.Get(questionXDurationId);

            if (questionX == null)
            {
                return(NotFound("QuestionXDuration record not found !!!"));
            }
            return(Ok(questionX));
        }
        public IActionResult GetItemById(long itemId)
        {
            Item item = _dataRepository.Get(itemId);

            if (item == null)
            {
                return(NotFound("item record not found !!!"));
            }
            return(Ok(item));
        }
Esempio n. 25
0
        public IActionResult GetSupplierById(long supplierId)
        {
            Supplier supplier = _dataRepository.Get(supplierId);

            if (supplier == null)
            {
                return(NotFound("Supplier record not found !!!"));
            }
            return(Ok(supplier));
        }
Esempio n. 26
0
        public IActionResult GetpurchaseById(long purchaseId)
        {
            Purchase purchase = _dataRepository.Get(purchaseId);

            if (purchase == null)
            {
                return(NotFound("purchase record not found !!!"));
            }
            return(Ok(purchase));
        }
        public IActionResult GetCategoryById(long categoryId)
        {
            Category category = _dataRepository.Get(categoryId);

            if (category == null)
            {
                return(NotFound("Category record not found !!!"));
            }
            return(Ok(category));
        }
        public IActionResult GetCompanyAddressById(long companyAddressesId)
        {
            CompanyAddress companyAddresses = _repository.Get(companyAddressesId);

            if (companyAddresses == null)
            {
                return(NotFound("CompanyAddress record Not Found !!!"));
            }
            return(Ok(companyAddresses));
        }
        public IActionResult GetSubjectById(long subjectId)
        {
            Subject subject = _dataRepository.Get(subjectId);

            if (subject == null)
            {
                return(NotFound("Subject record not found !!!"));
            }
            return(Ok(subject));
        }
Esempio n. 30
0
        public IActionResult GetShippmentById(long ShippmentId)
        {
            Shippment shippment = _dataRepository.Get(ShippmentId);

            if (shippment == null)
            {
                return(NotFound("shippment record not found !!!"));
            }
            return(Ok(shippment));
        }