public static InfluencerFormViewModel CreateFormViewModel(Influencer influencer, IEnumerable <MembershipType> membershipTypes, string pageName, string buttonName, string fullName) { if (influencer == null) { var viewModel = new InfluencerFormViewModel() { MembershipTypes = membershipTypes, //VIEW PROPERTIES PageName = pageName, ButtonName = buttonName, FullName = fullName, }; return(viewModel); } else { var viewModel = new InfluencerFormViewModel(influencer, membershipTypes, pageName, buttonName, fullName); return(viewModel); } }