public static ProjectViewModel ToViewModel(this CodeProject project) { ProjectViewModel model = IoC.Get <ProjectViewModel>(); model = project.MapTo(model); return(model); }