I have the following action method inside asp.net mvc5, which i define as ChildActionOnly:-
[ChildActionOnly]
public ActionResult GetChildRecords(int customerid)
and i am calling it as follow, within my view:-
<div>@Html.Action("GetChildRecords", "Customer", new {customerid = Model.CustomerID})</div>
but i have the following questions:-
do i need to add [Authorize] annotation before my child action method ? or i can be sure that since its parent is being authorized, so the child action method will be authorized also ?
can users or hackers directly calls a ChildActionOnly directly ?
could users or hackers modify the Html.Action parameters ?, for example to pass different customerid in the below html:-
@Html.Action("GetChildRecords", "Customer", new {customerid = Model.CustomerID})
?