コード例 #1
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();
 }
コード例 #2
0
        // GET: api/Detail/5
        public IHttpActionResult Get(Int64 id)
        {
            Int64 detail;

            DetailsB detailsB = new DetailsB();

            detail = detailsB.Create(id);

            if (detail == -1)
            {
                return(Ok(false));
            }

            return(Ok(detail));
        }