Click here to Skip to main content
16,015,679 members

Comments by Mithun P (Top 21 by date)

Mithun P 23-Dec-15 0:54am View    
Hi i have problem to validate the cert when i get request. i am not able get the cert details from request
Mithun P 20-Jan-15 3:44am View    
Hi..Below is the code for controller.

public class ProductController : Controller
{
private IProductService productService;
public ProductController(IProductService productService)
{
this.productService = productService;

}
}

This Product service code is as below

public class ProductService:IProductService
{
private IRepository productRepository;
public ProductService(IRepository productRepository)
{
this.productRepository = productRepository;
}
}

Now you can see in controller class I am not using default constructor. For this I used two ways ,one using autofac another Unity. But can I achieve this without using any of this third party.
Mithun P 19-Jan-15 23:47pm View    
Hi Thanks for your reply but I am using Repository Pattern ,now in controller I am calling this repository interface in constructor as Constructor Injection. So now how do I handle default constructor.
Mithun P 28-Nov-13 1:00am View    
yes it can be jumbled
Mithun P 5-Jul-13 4:42am View    
Hi Thanks for giving suggestion,ya it work fine if i don't use table inside the header and item template but my design is such that i have to use the table inside header and item template.. When i don't use table inside item template it works fine but i want it to work when i am using table inside header and item template. Hope u understood my problem