title: How to add a MVC Account controller to WebApi project in Visual Studio 2013?
body: <p>I am trying to understand the concept of one asp.net. I did the entire exercise <a href="http://www.asp.net/aspnet/overview/whats-new-in-visual-studio-2013/one-aspnet-integrating-aspnet-web-forms,-mvc-and-web-api" rel="nofollow noreferrer">here.</a>
  Its easy. </p>
  
  <p>Now trying to understand further, I created a new Asp.Net project and selected Web API template as follows. So we see that MVC and Web API check boxes are selected. </p>
  
  <p><img src="https://i.stack.imgur.com/WMpET.png" alt="New Web Api project template in VS 2013"></p>
  
  <p>If I observe the project The AccountController is an ApiController and so the views folder does not have any Account and Manage folders as expected.</p>
  
  <p><img src="https://i.stack.imgur.com/8sIWI.png" alt="Account controller for web api"></p>
  
  <p><strong>Now my question is how do I add an Mvc Account controller to the above project?</strong> I very well know that if I select MVC in the new project dialog as follows I can get that.</p>
  
  <p><img src="https://i.stack.imgur.com/eQUYL.png" alt="New MVC project template in VS 2013"></p>
  
  <p>What I want is to add is an MVC account controller along with the views exactly like the following in the Web api project show earlier. </p>
  
  <p><img src="https://i.stack.imgur.com/fipms.png" alt="Account Controller for MVC"></p>
  
  <p>This should be very easy I guess. So could someone please describe some steps? Like for example, which model and context we need to select on add scaffold and then Add Controller dialogs?</p>
  
  <p><img src="https://i.stack.imgur.com/uGdx7.png" alt="Add Scaffold dialog">
  <img src="https://i.stack.imgur.com/aLkKg.png" alt="Add Controller dialog after Scaffold dialog"></p>
  
  <p>In other words <strong>I want to understand looking at a controller say AccountController be it Api or Mvc, how do I understand what is the model class and Data context associated with it</strong>.</p>