Parameterized constructor in view model not working
- by rajcool111
I have one small issue.
in my view model parameterized constructor is not working. while debugging i observed that default constructor get hit but it never triggers my parameterized constructor.
How I can get my parameterized constructor working?
public EmployeeRequestViewModel(IEventAggregator eventAggregator, IContextManager contextmanager):this()
{
_contextmanager = contextmanager;
_eventAgg = eventAggregator;
_eventAgg.GetEvent<EmployeeEvent>().Subscribe(EventTask);
}
public EmployeeRequestViewModel()
{
LoadEmpRequest();
}