コード例 #1
0
 public ActionResult ContactInformation()
 {
     if (Session["UserId"] != null)
     {
         UserDetailsDTO     Userdata = UserService.GetUserContactInformation(Convert.ToInt32(Session["UserId"].ToString()));
         ContactInformation Info     = new ContactInformation()
         {
             PresentAddress      = Userdata.PermanentAddress,
             PermanentAddress    = Userdata.Address,
             Countrys            = GenericMethodsservices.GetAllCountries(),
             CountryId           = Userdata.CountryId.Value,
             PermanentCountryid  = Userdata.PermanentCountryId.Value,
             Mobile              = Userdata.PhoneNumber,
             StateId             = Convert.ToInt32(Userdata.StateId),
             PermanentStateId    = Convert.ToInt32(Userdata.StateId),
             Districtid          = Userdata.PresentDistid.Value,
             PermenantDistrictId = Userdata.Permanentdistid,
             AlternateEmail      = Userdata.AlternateEmailId,
             AlternameMobile     = Userdata.HomePhoneNumber,
             cityName            = Userdata.PresentCity,
             AlternatecityName   = Userdata.PermanentCity
         };
         return(View(Info));
     }
     return(RedirectToAction("Login", "Account"));
 }
コード例 #2
0
ファイル: AccountController.cs プロジェクト: Zoninn/Alumni
        public ActionResult ContactInformation()
        {
            ContactInformation Info = new Models.ContactInformation()
            {
                Countrys = GenericMethodsservices.GetAllCountries(),
            };

            return(View(Info));
        }
コード例 #3
0
        public ActionResult Gallery(int?id)
        {
            Gallery Model = new Gallery()
            {
                Galleries = GenericMethodsservices.UserGallery(id)
            };

            return(View(Model));
        }
コード例 #4
0
        public ActionResult AllEvents()
        {
            MyEventsModel events = new MyEventsModel()
            {
                UserPurchasedEvents = GenericMethodsservices.GetAdminEvents()
            };

            return(View(events));
        }
コード例 #5
0
 public ActionResult Conatctus(Alumni_ContactUs Contactus)
 {
     try
     {
         Contactus.CreatedOn = DateTime.Now;
         Contactus.Status    = true;
         GenericMethodsservices.ContactUs(Contactus);
         Emails.ContactUs(Contactus.Email, Contactus.Mobile, Contactus.Message, Contactus.Name);
         TempData["Message"] = "Thanks for contact us.we will respond shortly..";
         return(RedirectToAction("Conatctus", "Home", new { Area = "" }));
     }
     catch (SystemException ex)
     {
     }
     return(View());
 }
コード例 #6
0
        public ActionResult Index()
        {
            if (Session["UserId"] != null)
            {
                Session.Remove("UserId");
                return(RedirectToAction("Index", "Home", new { area = "" }));
            }
            EventsModel Model = new EventsModel()
            {
                UserNews    = NewsroomService.GetNews(),
                UserJobs    = UserJobPostingservice.GetJobs().ToList().Take(6),
                DisplayHome = EventServices.GetEventsforHome(),
                Activities  = GenericMethodsservices.GetActivities()
            };

            return(View(Model));
        }
コード例 #7
0
ファイル: AccountController.cs プロジェクト: Zoninn/Alumni
        public ActionResult ContactInformation(ContactInformation ContactHostelsInfoDTO)
        {
            if (Session["UserId"] != null)
            {
                UserDetail userDetails = new UserDetail()
                {
                    Id = Convert.ToInt32(Session["UserId"].ToString()),
                    AlternateEmailId = ContactHostelsInfoDTO.AlternateEmail,
                    PhoneNumber      = ContactHostelsInfoDTO.Mobile,
                    PermanentAddress = ContactHostelsInfoDTO.PermanentAddress,
                    //HomeCityId = ContactHostelsInfoDTO.CityId,
                    //LivesInCityId = ContactHostelsInfoDTO.PermanentCityId,
                    PermanentCity   = ContactHostelsInfoDTO.AlternatecityName,
                    PresentCity     = ContactHostelsInfoDTO.cityName,
                    PermanentDistid = ContactHostelsInfoDTO.Districtid,
                    PresentDistid   = ContactHostelsInfoDTO.PermenantDistrictId,
                    Address         = ContactHostelsInfoDTO.PresentAddress,

                    //  CountryCode = ContactHostelsInfoDTO.CountryCodes,
                    HomePhoneNumber       = ContactHostelsInfoDTO.AlternameMobile,
                    ProfileInfoPercentage = (int)CustomStatus.ProfileInfoPercentage.ContactInformation,
                };
                UserService.UpdateContactInfo(userDetails);
                return(RedirectToAction("ProfessionalDetails"));
            }
            else
            {
                return(RedirectToAction("Login"));
            }

            ContactInformation Info = new Models.ContactInformation()
            {
                Countrys = GenericMethodsservices.GetAllCountries(),
                //States = StatecitydistrictService.GetAllStates()
            };

            return(View(Info));
        }
コード例 #8
0
        public ActionResult Donations()
        {
            List <Donation_Details> data = GenericMethodsservices.GetAdminDonations();

            return(View(data));
        }