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")); }
public ActionResult ContactInformation() { ContactInformation Info = new Models.ContactInformation() { Countrys = GenericMethodsservices.GetAllCountries(), }; return(View(Info)); }
public ActionResult Gallery(int?id) { Gallery Model = new Gallery() { Galleries = GenericMethodsservices.UserGallery(id) }; return(View(Model)); }
public ActionResult AllEvents() { MyEventsModel events = new MyEventsModel() { UserPurchasedEvents = GenericMethodsservices.GetAdminEvents() }; return(View(events)); }
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()); }
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)); }
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)); }
public ActionResult Donations() { List <Donation_Details> data = GenericMethodsservices.GetAdminDonations(); return(View(data)); }