Here I will just go about the approach needs to be taken when learning to use unity framework. Download the file . This files explains from basics how and why to use unity. After learning this. Add Nuget Project Unity.MVC in your App. Once added It will add few dlls as below It will add a file as below App_Start=> UnityMvcActivator.cs In the UnityWebActivator.Start method add a method call at the end. RegisterTypes ( container ); also create a method as below public static void RegisterTypes ( IUnityContainer container ) { container . RegisterType < ICompanyRepository , CompanyRepository >(); } Add Company.cs class in the Models folder public class Company { public int Id { get ; set ; } public string Name ...