2

I am very new to MVC, My requirement is to develop application using Web Api 2 ,Asp.net identity ,Entity framework code first method. Can i put my web api and mvc in same project? can i generate api controller and controller from single model class using identity? I did a lot of search for this but i din't get perfect solution.

Thanks in advance

7
  • Yes. You can select both mvc, api for one project. Commented Jan 15, 2015 at 2:54
  • Can i add both Api controller and controller? i'm using Asp.net identity. Commented Jan 15, 2015 at 2:59
  • 1
    Yes, of course, for one project you can have both controller and api controller. They are inherited from different classes. i.e. Controller and ApiController. Commented Jan 15, 2015 at 3:05
  • @joydesigner Can we have one model class for both Controller and ApiController? Commented Jan 15, 2015 at 7:29
  • 2
    You can use the same Model Class for both types of controllers, yes. Commented Jan 19, 2015 at 3:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.