예제 #1
0
        public static ContactUs MapToPageViewContact(this ViewContactUs pageContactCreateViewModel)
        {
            ContactUs pageContact = new ContactUs();

            pageContact.Email        = pageContactCreateViewModel.Email;
            pageContact.FirstName    = pageContactCreateViewModel.FirstName;
            pageContact.SecondName   = pageContactCreateViewModel.SecondName;
            pageContact.Address      = pageContactCreateViewModel.Address;
            pageContact.City         = pageContactCreateViewModel.City;
            pageContact.Region       = pageContactCreateViewModel.Region;
            pageContact.PostalNumber = pageContactCreateViewModel.PostalNumber;
            pageContact.PhoneNumber  = pageContactCreateViewModel.PhoneNumber;
            pageContact.Topic        = pageContactCreateViewModel.Topic;
            pageContact.Message      = pageContactCreateViewModel.Message;



            return(pageContact);
        }
예제 #2
0
        public static ViewContactUs  MapToPageContact(this PageContact pageContactCreateViewModel)
        {
            ViewContactUs pageContact = new ViewContactUs();

            pageContact.EnMapTitle            = pageContactCreateViewModel.EnMapTitle;
            pageContact.ArMapTitle            = pageContactCreateViewModel.ArMapTitle;
            pageContact.ArParticipateTitle    = pageContactCreateViewModel.ArParticipateTitle;
            pageContact.EnParticipateTitle    = pageContactCreateViewModel.EnParticipateTitle;
            pageContact.ArAddress             = pageContactCreateViewModel.ArAddress;
            pageContact.EnAddress             = pageContactCreateViewModel.EnAddress;
            pageContact.MapUrl                = pageContactCreateViewModel.MapUrl;
            pageContact.PhoneNumber           = pageContactCreateViewModel.PhoneNumber;
            pageContact.FaxNumber             = pageContactCreateViewModel.FaxNumber;
            pageContact.EmailParticipateEmail = pageContactCreateViewModel.EmailParticipateEmail;
            pageContact.FormParticipateActive = pageContactCreateViewModel.FormParticipateActive;



            return(pageContact);
        }