예제 #1
0
        public async Task <ActionResult <IEnumerable <ProductoModel> > > GetAllProductos()
        {
            var productos = await _dataAccessProducto.GetAll() ?? null;

            if (productos is null)
            {
                return(NotFound());
            }

            return(Ok(productos));
        }
        public async Task <ActionResult <IEnumerable <AreaModel> > > GetAllTipos()
        {
            var tipos = await _dataAccessTP.GetAll() ?? null;

            if (tipos is null)
            {
                return(NotFound());
            }

            return(Ok(tipos));
        }
예제 #3
0
        public async Task <ActionResult <IEnumerable <ProveedorModel> > > GetAllproveedors()
        {
            var proveedores = await _dataAccessproveedor.GetAll() ?? null;

            if (proveedores is null)
            {
                return(NotFound());
            }

            return(Ok(proveedores));
        }
예제 #4
0
        public async Task <ActionResult <IEnumerable <AreaModel> > > GetAllAreas()
        {
            var areas = await _dataAccessArea.GetAll() ?? null;

            if (areas is null)
            {
                return(NotFound());
            }

            return(Ok(areas));
        }
예제 #5
0
        public async Task <ActionResult <IEnumerable <EmpleadoModel> > > GetAllEmpleados()
        {
            var empleados = await _dataAccessEmpleado.GetAll() ?? null;

            if (empleados is null)
            {
                return(NotFound());
            }

            return(Ok(empleados));
        }
        public async Task <ActionResult <IEnumerable <InventarioModel> > > GetAllInventarios()
        {
            var inventarios = await _dataAccessProvider.GetAll() ?? null;

            if (inventarios is null)
            {
                return(NotFound());
            }

            return(Ok(inventarios));
        }
예제 #7
0
        public List <Requisition> GetRequisitions()
        {
            // Костыль: убираем загрузку связанных данных
            // Query возращает полный набор при условии PropertyRef(x => x.Requisition) в мапинге
            // без условия Fetch не подгружает связанные данные (надо разбирться)

            var woExt = _requisitionRepo.GetAll()
                        .Select(n => new Requisition {
                Id = n.Id, Subject = n.Subject, RequisitionExt = null
            });

            return(woExt.ToList());
        }
예제 #8
0
        public IActionResult GetBrand()
        {
            IEnumerable <Brand> brands = _dataRepository.GetAll();

            return(Ok(brands));
        }
예제 #9
0
        public IActionResult GetEmployer()
        {
            IEnumerable <Employer> employers = _repository.GetAll();

            return(Ok(employers));
        }
        public IActionResult GetCategory()
        {
            IEnumerable <Category> category = _dataRepository.GetAll();

            return(Ok(category));
        }
        public IActionResult GetExperience()
        {
            IEnumerable <Experience> experiences = _repository.GetAll();

            return(Ok(experiences));
        }
예제 #12
0
        public IActionResult GetEducation()
        {
            IEnumerable <Education> educations = _repository.GetAll();

            return(Ok(educations));
        }
예제 #13
0
        public IActionResult GetRegistration()
        {
            IEnumerable <Registration> registration = _dataRepository.GetAll();

            return(Ok(registration));
        }
예제 #14
0
        public IActionResult GetPayment()
        {
            IEnumerable <Payment> payments = _dataRepository.GetAll();

            return(Ok(payments));
        }
예제 #15
0
        public IActionResult GetOrganization()
        {
            IEnumerable <Organization> organizations = _dataRepository.GetAll();

            return(Ok(organizations));
        }
예제 #16
0
        public IActionResult GetCustomer()
        {
            IEnumerable <Customer> customers = _dataRepository.GetAll();

            return(Ok(customers));
        }
        public IActionResult GetExhibit()
        {
            IEnumerable <Exhibit> exhibits = _dataRepository.GetAll();

            return(Ok(exhibits));
        }
        public IActionResult GetQuestionXDuration()
        {
            IEnumerable <QuestionXDuration> questionXDurations = _dataRepository.GetAll();

            return(Ok(questionXDurations));
        }
        public IActionResult GetTestXPaper()
        {
            IEnumerable <TestXPaper> testXPapers = _dataRepository.GetAll();

            return(Ok(testXPapers));
        }
예제 #20
0
        public IActionResult GetSupplier()
        {
            IEnumerable <Supplier> suppliers = _dataRepository.GetAll();

            return(Ok(suppliers));
        }
        public IActionResult GetTraining()
        {
            IEnumerable <Training> trainings = _repository.GetAll();

            return(Ok(trainings));
        }
        public IActionResult GetStock()
        {
            IEnumerable <Stock> stocks = _dataRepository.GetAll();

            return(Ok(stocks));
        }
예제 #23
0
        public IActionResult GetAddress()
        {
            IEnumerable <Address> addresses = _repository.GetAll();

            return(Ok(addresses));
        }
예제 #24
0
        public IActionResult GetOrderDetail()
        {
            IEnumerable <OrderDetail> orderDetails = _dataRepository.GetAll();

            return(Ok(orderDetails));
        }
예제 #25
0
        public IActionResult GetStudent()
        {
            IEnumerable <Student> trainees = _dataRepository.GetAll();

            return(Ok(trainees));
        }
        public IActionResult GetSubject()
        {
            IEnumerable <Subject> subjects = _dataRepository.GetAll();

            return(Ok(subjects));
        }
        public virtual async Task <IReadOnlyCollection <TBL> > GetAllItems()
        {
            var items = await _repository.GetAll().ConfigureAwait(false);

            return(items.Select(item => _mapper.Map <TBL>(item)).ToArray());
        }
예제 #28
0
        public IActionResult Getpurchase()
        {
            IEnumerable <Purchase> purchase = _dataRepository.GetAll();

            return(Ok(purchase));
        }
예제 #29
0
        public IActionResult GetAdminPanel()
        {
            IEnumerable <AdminPanel> adminPanels = _dataRepository.GetAll();

            return(Ok(adminPanels));
        }
        public IActionResult GetCompanyAddress()
        {
            IEnumerable <CompanyAddress> companyAddresses = _repository.GetAll();

            return(Ok(companyAddresses));
        }