Exemplo n.º 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));
        }
Exemplo n.º 3
0
        public async Task <ActionResult <IEnumerable <ProveedorModel> > > GetAllproveedors()
        {
            var proveedores = await _dataAccessproveedor.GetAll() ?? null;

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

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

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

            return(Ok(areas));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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());
        }
Exemplo n.º 8
0
        public IActionResult GetBrand()
        {
            IEnumerable <Brand> brands = _dataRepository.GetAll();

            return(Ok(brands));
        }
Exemplo n.º 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));
        }
Exemplo n.º 12
0
        public IActionResult GetEducation()
        {
            IEnumerable <Education> educations = _repository.GetAll();

            return(Ok(educations));
        }
Exemplo n.º 13
0
        public IActionResult GetRegistration()
        {
            IEnumerable <Registration> registration = _dataRepository.GetAll();

            return(Ok(registration));
        }
Exemplo n.º 14
0
        public IActionResult GetPayment()
        {
            IEnumerable <Payment> payments = _dataRepository.GetAll();

            return(Ok(payments));
        }
Exemplo n.º 15
0
        public IActionResult GetOrganization()
        {
            IEnumerable <Organization> organizations = _dataRepository.GetAll();

            return(Ok(organizations));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 23
0
        public IActionResult GetAddress()
        {
            IEnumerable <Address> addresses = _repository.GetAll();

            return(Ok(addresses));
        }
Exemplo n.º 24
0
        public IActionResult GetOrderDetail()
        {
            IEnumerable <OrderDetail> orderDetails = _dataRepository.GetAll();

            return(Ok(orderDetails));
        }
Exemplo n.º 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());
        }
Exemplo n.º 28
0
        public IActionResult Getpurchase()
        {
            IEnumerable <Purchase> purchase = _dataRepository.GetAll();

            return(Ok(purchase));
        }
Exemplo n.º 29
0
        public IActionResult GetAdminPanel()
        {
            IEnumerable <AdminPanel> adminPanels = _dataRepository.GetAll();

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

            return(Ok(companyAddresses));
        }