web api - Run a method after some controllers Web API -
I know that there is a web API filter which will run some arguments before running the controller (if I decorate the controller ) Also allow me to plug request / feedback pipeline on both request and response as delegated operators.
My question is something that is running a custom logic after I run a controller, along with the method decoration indicates which controls are affected.
something
[Actiteepiost] [Vilarnaftrkantrolrhashrn] Add public Domenkkodelinkkkodlink (Domenkkodelinkkkodlink New Itam) {var Rtrn = Mapper. Map & lt; Domain.Codelink.CodeLink & gt; (Repo.Insert (Mapper map & lt; EF.Codelink.CodeLink> (newItem)); Return (RTNN); }
Thanks!
You must use the same Akshnfiltr but OnActionExecuting
(before the controller is) instead of override you OnActionExecuted
public class PostControllerAttrbute: ActionFilterAttribute {public override void OnActionExecuted HttpActionExecutedContext actionExecutedContext) {// stuff ... base.OnActionExecuted (Proceeding harvesting); }}
Comments
Post a Comment