The controller is in /Areas/ShoppingCart/Controllers/
I've tried to let the controller return the PartialView which in /Views/Shared folder.
The Code as follows:
public class CartController : Controller
public ActionResult GetCart()
public ActionResult AddToCart(int id)
var currentCart = Operation.GetCurrentCart();
But the chrome shows the error message that is
Not Found PartialView in /Areas/ShoppingCart/Controllers/
How should I fix the problem?
If your partial is in the shared folder you don`t have to pass the entire path
Shared folder it`s access by all controllers