I have develop web application in ASP.NET MVC using StructureMap DI pattern to retrieve data from BAL to UI and used layered architecture pattern to retrieve data from DAL to BAL. find bellow my class diagram.
So,i tired to config StructureMap service register as
public class Bootstrapper
{
public static void Initialize()
{
StructureMapConfiguration.AddRegistry(new ServiceRegistry());
}
public class ServiceRegistry : Registry
{
protected override void configure()
{
ForRequestedType<IVehicleService> ().TheDefaultIsConcreteType<VehicleService>();
}
}
}
But, configuration is not applied correctly, occurred errors and saying "some methods are not find in interface class". of course, its correct. because in my BAL class have inherited some of methods/function from DAL. So,please help me fix this issue or give any best practice to apply my project.