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)); }
public async Task <ActionResult <IEnumerable <ProveedorModel> > > GetAllproveedors() { var proveedores = await _dataAccessproveedor.GetAll() ?? null; if (proveedores is null) { return(NotFound()); } return(Ok(proveedores)); }
public async Task <ActionResult <IEnumerable <AreaModel> > > GetAllAreas() { var areas = await _dataAccessArea.GetAll() ?? null; if (areas is null) { return(NotFound()); } return(Ok(areas)); }
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)); }
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()); }
public IActionResult GetBrand() { IEnumerable <Brand> brands = _dataRepository.GetAll(); return(Ok(brands)); }
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)); }
public IActionResult GetEducation() { IEnumerable <Education> educations = _repository.GetAll(); return(Ok(educations)); }
public IActionResult GetRegistration() { IEnumerable <Registration> registration = _dataRepository.GetAll(); return(Ok(registration)); }
public IActionResult GetPayment() { IEnumerable <Payment> payments = _dataRepository.GetAll(); return(Ok(payments)); }
public IActionResult GetOrganization() { IEnumerable <Organization> organizations = _dataRepository.GetAll(); return(Ok(organizations)); }
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)); }
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)); }
public IActionResult GetAddress() { IEnumerable <Address> addresses = _repository.GetAll(); return(Ok(addresses)); }
public IActionResult GetOrderDetail() { IEnumerable <OrderDetail> orderDetails = _dataRepository.GetAll(); return(Ok(orderDetails)); }
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()); }
public IActionResult Getpurchase() { IEnumerable <Purchase> purchase = _dataRepository.GetAll(); return(Ok(purchase)); }
public IActionResult GetAdminPanel() { IEnumerable <AdminPanel> adminPanels = _dataRepository.GetAll(); return(Ok(adminPanels)); }
public IActionResult GetCompanyAddress() { IEnumerable <CompanyAddress> companyAddresses = _repository.GetAll(); return(Ok(companyAddresses)); }