Click here to Skip to main content
16,017,755 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two project in one solution. First is MVC4 WebAPI and second in Class Library.
I have a Interface in class library. I want to implement this Injterface in WebApi.
C#
public interface IAuthorize
    {
        bool IsAuthorize(HttpActionContext actionContext, AuthorizedUser user);
    }


I have implement this function in class library. I want to call IsAuthorized function there whic have implemnt in Web APi.
C#
public override void OnAuthorization(HttpActionContext actionContext)
        {
}



Please help me...........
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900