Based upon Pullrequest #70 and #71
The motivation was that PageModel should be use Page name extension and ViewModel should be use View as name Extension. Because of a typo the ViewModel uses the Page name extension also.
#70
Simple replacement of Page to View is not possible because it would be break a lot of application without update the code of the apps.
(it make sense, or not)
#71
looks to me like a workaround to solve the problem.
My Question (remember i am new on C#):
Why we could not simple use the IoC Pattern here? and let the user the choice to register a own Mapper?
public static IFreshPageModelMapper PageModelMapper { get; set; } = new FreshPageModelMapper();
With IoC ?
public static IFreshPageModelMapper PageModelMapper { get; set; } = FreshIOC.Container.Resolve<IFreshPageModelMapper>();
Based upon Pullrequest #70 and #71
The motivation was that PageModel should be use Page name extension and ViewModel should be use View as name Extension. Because of a typo the ViewModel uses the Page name extension also.
#70
Simple replacement of Page to View is not possible because it would be break a lot of application without update the code of the apps.
(it make sense, or not)
#71
looks to me like a workaround to solve the problem.
My Question (remember i am new on C#):
Why we could not simple use the IoC Pattern here? and let the user the choice to register a own Mapper?
public static IFreshPageModelMapper PageModelMapper { get; set; } = new FreshPageModelMapper();With IoC ?
public static IFreshPageModelMapper PageModelMapper { get; set; } = FreshIOC.Container.Resolve<IFreshPageModelMapper>();