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
Laxmidhar SahooPosted Jul 28, 2020, 9:39 AM
Pravinkumar BirajdarPosted Jul 27, 2020, 1:45 PM
Darshan ShahPosted Jul 27, 2020, 5:22 AM
Laxmidhar SahooPosted Jul 26, 2020, 11:26 PM
Jenith ThakkarPosted Jul 26, 2020, 11:02 PM