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(); }
// 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)); }