asp.net WebAPI showing error as [objec Object]
web api
- public class BrandsController : ApiController
- {
- public List
Get() - {
- EFDBFirstDatabaseEntities db = new Models.EFDBFirstDatabaseEntities();
- List
brands = db.Brands.ToList(); - return brands;
- }
- }
- @{
- ViewBag.Title = "Index";
- Layout = "~/Views/Shared/_LayoutPage1.cshtml";
- }
- class="container">
Brands
- id="btnGetBrands" class="btn">Get Brands
class="table brandsTable">
Brand ID Brand Name

Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 26, 2020, 7:02 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 26, 2020, 7:26 PM EDT
Darshan ShahRank #1,135 · 1.6K reputationPosted Jul 27, 2020, 1:22 AM EDT
Pravinkumar BirajdarRank #2,222 · 632 reputationPosted Jul 27, 2020, 9:45 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Jul 28, 2020, 5:39 AM EDT