User527076549 posted
Before an action is executed, information about the action must be written to a log. After results
are returned, information about the results also must be written to the log.
You need to log the actions and results
what shoul be the answers for target1 and target2
Before action executed = OnActionExecuting(ActionExecutingContext filterContext)
after result returned = once action executed you get the result ,so "OnActionExecuted(ActionExecutedContext filterContext)"
Can anyone tell me if i am right or wrong ?
you can get result in OnResultExecuting in as well ..
public class LogActionFilter : ActionFilterAttribute
{
public override void TARGET1
{
Log("LOGACTION", filterContext.RouteData);
}
public override void TARGET2
{
Log("LOGRESULT", filterContext.RouteData);
}
}
I really appreciate your help.Thank you