Пример #1
0
        public static GiveCampLondon.Charity MapToCharityModel(this Charity.SignUpViewModel vm)
        {
            var charity = new GiveCampLondon.Charity
            {
                CharityName           = vm.Name,
                BackgroundInformation = vm.BackgroundInformation,
                OtherInfrastructure   = vm.OtherInfrastructure,
                OtherSupportSkills    = vm.OtherSupportSkills,
                WorkRequested         = vm.WorkRequested,
                Email        = vm.Email,
                Website      = vm.Website,
                ContactName  = vm.ContactName,
                ContactPhone = vm.ContactPhone,
                Approved     = false
            };

            return(charity);
        }
        public static GiveCampLondon.Charity MapToCharityModel(this Charity.SignUpViewModel vm)
        {
            var charity = new GiveCampLondon.Charity
            {
                CharityName = vm.Name,
                BackgroundInformation = vm.BackgroundInformation,
                OtherInfrastructure = vm.OtherInfrastructure,
                OtherSupportSkills = vm.OtherSupportSkills,
                WorkRequested = vm.WorkRequested,
                Email = vm.Email,
                Website = vm.Website,
                ContactName = vm.ContactName,
                ContactPhone = vm.ContactPhone,
                Approved = false
            };

            return charity;
        }