i am very new to mvc
//localhost:51525/api/products/GetPromotionTypes
the controller i have got is as bellow
public IEnumerable<Product> GetAll()
{
return Utility.GetDiscountItems();
}
public Product GetProduct(string Id)
{
return Utility.GetProduct(Id);
}
public String PostBag(Bag bagofItem)
{
return Utility.PostBagDiscountedItem(bagofItem);
}
public List<PromotionType> GetPromotionTypes()
{
return Utility.GetPromotionTypes();
}
when i call from the above uri it pointing to the controller GetProduc() but what i wanted it to call GetPromotionTypes()
what i have done wrong appreciate all your help