Web API Getting Http 500 error : Issue Solved See Below
- by Joe Grasso
Here is my MVC Controller and everything is fine:
private UnitOfWork UOW;
public InventoryController()
{
UOW = new UnitOfWork();
}
// GET: /Inventory/
public ActionResult Index()
{
var products = UOW.ProductRepository.GetAll().ToList();
return View(products);
}
Same method call in API…