TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anjali Kumari
NA
163
21k
Need to create parameterized constructor in webAPI
Jun 28 2017 9:29 AM
I need some sample example with parameterized constructor using reprository and web-API
I tried this:
public class TestUserController : ApiController
{
private readonly IUserRepository UserRepository;
public TestUsersController()
{
}
public TestUsersController(IUserRepository UserRepository)
{
this.UserRepository = UserRepository;.........this parameterized constructor is not hitting and getting always null
}
Reply
Answers (
4
)
Upload image in mvc5
Modal popup in MVC