Beispiel #1
0
 public AssetsLiabilitiesController()
 {
     assetsLiabilitiesB = new AssetsLiabilitiesB();
     categoriesB        = new CategoriesB();
     subCategoriesB     = new SubCategoriesB();
     accountB           = new AccountsB();
     userB = new UsersB();
 }
Beispiel #2
0
 public SalesController()
 {
     categoriesB        = new CategoriesB();
     subCategoriesB     = new SubCategoriesB();
     accountB           = new AccountsB();
     userB              = new UsersB();
     saleB              = new SalesB();
     assetsLiabilitiesB = new AssetsLiabilitiesB();
     clientsB           = new ClientsB();
     productsB          = new ProductsB();
     detailsB           = new DetailsB();
     invoicesB          = new InvoicesB();
     providersB         = new ProvidersB();
 }
Beispiel #3
0
        public IHttpActionResult Get()
        {
            IList <Categories> categories = null;

            CategoriesB categoriesB = new CategoriesB();

            categories = categoriesB.GetAll();

            if (categories == null)
            {
                Ok(false);
            }

            return(Ok(categories));
        }
Beispiel #4
0
 public CategoriesController()
 {
     categoriesB    = new CategoriesB();
     subCategoriesB = new SubCategoriesB();
 }