There are many suggestions,
- Why you have made two project? WebApi can easily manage in MVC application.
- To call web api you have to use
/api/UserManager
url. - It also require to follow form method. if you have mentioned
[HttpGet]
annotation onCreateUser
, you must use Get form method while calling this api. - If you do not want to integrate webapi in MVC application it will throw an error of cross origin resource sharing. for that you will have to defined
CreateUser
as[EnableCors]
annotation.
For reference check this - http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api