public void GetTributesFeedTest() { UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value Tributes objtribute = new Tributes(); objtribute.UserTributeId = 9; object[] _MyTributes = { objtribute, 1, 1, 1000 };// TODO: Initialize to an appropriate value //object[] _MyTributes = new object(); int expectedCount = 265; //List<GetTributesFeed> lstTributes = target.GetTributesFeed(_MyTributes); //lstTributes = target.GetTributesFeed(_MyTributes); List<GetTributesFeed> actual = new List<GetTributesFeed>(); //actual = target.GetTributesFeed(_MyTributes); Assert.AreEqual(expectedCount, actual.Count); //Assert.Inconclusive("Verify the correctness of this test method."); }
public void SendAdminMails(int SendByUserId, string SendToUserId, string TributeId, string TributeName, string TributeType, string userName) { Tributes objTribute = new Tributes(); objTribute.TributeId = int.Parse(TributeId); TributeManager objtrbmngr = new TributeManager(); objtrbmngr.GetTributeSession(objTribute); EmailMessages objEmail = EmailMessages.Instance; // string fromMail = GetEmail(SendByUserId); string fromMail = "Your Tribute <" + WebConfig.NoreplyEmail + ">"; string tomail = SendToUserId; MailBodies objMailbod = new MailBodies(); string _EmailBody = objMailbod.AdminRequest(userName, TributeType, TributeName, objTribute.TributeUrl, TributeId, tomail); bool val = objEmail.SendMessages(fromMail, tomail, userName + " made you a " + WebConfig.ApplicationWordForInternalUse.ToLower() + " administrator...", _EmailBody, EmailMessages.TextFormat.Html.ToString()); }
public object InsertCreditPointCCDetails(object[] objValue) { StringBuilder sb = new StringBuilder(); UserRegistration objUserReg = new UserRegistration(); BillingResource objBillingResource = new BillingResource(); BillingHistory objBilling = new BillingHistory(); EmailManager objEmailManager = new EmailManager(); TributePackage objpackage = new TributePackage(); // return objBillingResource.InsertRecord(objValue); UserCreditcardDetails objCCdetail = new UserCreditcardDetails(); SessionValue objUser = new SessionValue(); Tributes objTribute = new Tributes(); object identity = new object(); using (TransactionScope trans = new TransactionScope()) { identity = objBillingResource.InsertRecord(objValue); //Transaction Commited trans.Complete(); } return identity; }
/// <summary> /// Method to update tribute theme. /// </summary> /// <param name="objTheme">Filled tribute entity.</param> public void UpdateTributeTheme(Tributes objTheme) { FacadeManager.TributeThemeManager.UpdateTributeTheme(objTheme); }
/// <summary> /// Method to get Tribute Details for session based on Tribute Url and TributeType. /// </summary> /// <param name="objTribute">Tribute entity containing Tribute Url and Tribute Type.</param> /// <returns>Filled Tributes entity.</returns> public Tributes GetTributeSessionForUrlAndType(Tributes objTribute, string ApplicationType) { return FacadeManager.TributeManager.GetTributeSessionForUrlAndType(objTribute, ApplicationType); }
public bool GetIsMobileViewOn(Tributes obTrb) { return FacadeManager.TributeManager.GetIsMobileViewOn(obTrb); }
public void UpdateFavouriteEmailAlertTest() { UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value //object[] _Tributes = null; // TODO: Initialize to an appropriate value Tributes objTribute = new Tributes(); int UserId = InsertDummyUser("tj_op"); int TributeId = 38574;//dummy Id //remove hardcoding: use GetMyTributes-?already used in this file objTribute.UserTributeId = UserId; objTribute.TributeId = TributeId; objTribute.IsActive = true; object[] _tribute = { objTribute }; target.UpdateFavouriteEmailAlert(_tribute); object[] objParam = { TributeId, null }; DataSet dsTributeFav = GetDataSet("usp_GetFavouriteTributes", objParam); bool testPassed = false; //to fill records in entity if (dsTributeFav.Tables.Count > 0) { if (dsTributeFav.Tables[0].Rows.Count > 0) { foreach (DataRow dr in dsTributeFav.Tables[0].Rows) { if (int.Parse(dr["UserId"].ToString()) == UserId) testPassed = true; } } } Assert.AreEqual(true, testPassed); // Assert.Inconclusive("A method that does not return a value cannot be verified."); }
/// <summary> /// Method to get the list of tributes to add video tributes /// </summary> /// <param name="objTribute">Tribute entity containing user id</param> /// <returns>List of tributes</returns> public List<Tributes> GetListOfTributesForVideoTribute(Tributes objTribute) { return FacadeManager.VideoManager.GetListOfTributesForVideoTribute(objTribute); }
public void GetTributeSession(Tributes objtribute) { FacadeManager.TributeManager.GetTributeSession(objtribute); }
public object CreateTribute(Tributes tributes) { return FacadeManager.TributeManager.SaveTribute(tributes); }
public void GetUserDetailsFromEmail(object[] objValue) { UserRegistration objUserReg = (UserRegistration)objValue[0]; int tributeId = (int)objValue[1]; try { object[] objParam = { objUserReg.Users.Email, objUserReg.Users.Password }; DataSet _objDataSet = GetDataSet("usp_GetUserDetailsFromEmail", objParam); if (_objDataSet.Tables[0].Rows.Count > 0) { Users objUser = new Users(); objUser.EmailNotification = objUserReg.EmailNotification; objUser.UserId = int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.UserId.ToString()].ToString()); objUser.UserName = _objDataSet.Tables[0].Rows[0][Users.UserEnum.UserName.ToString()].ToString(); objUser.FirstName = _objDataSet.Tables[0].Rows[0][Users.UserEnum.FirstName.ToString()].ToString(); objUser.LastName = _objDataSet.Tables[0].Rows[0][Users.UserEnum.LastName.ToString()].ToString(); objUser.Email = _objDataSet.Tables[0].Rows[0][Users.UserEnum.Email.ToString()].ToString(); objUser.UserImage = _objDataSet.Tables[0].Rows[0][Users.UserEnum.UserImage.ToString()].ToString(); objUser.Status = int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.Status.ToString()].ToString()); objUser.City = _objDataSet.Tables[0].Rows[0][Users.UserEnum.City.ToString()].ToString(); if (_objDataSet.Tables[0].Rows[0][Users.UserEnum.State.ToString()].ToString() != "") objUser.State = int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.State.ToString()].ToString()); else objUser.State = -1; if (_objDataSet.Tables[0].Rows[0][Users.UserEnum.Country.ToString()].ToString() != "") objUser.Country = int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.Country.ToString()].ToString()); else objUser.Country = -1; objUser.IsUsernameVisiable = bool.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.IsUsernameVisiable.ToString()].ToString()); objUser.AllowIncomingMsg = bool.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.AllowIncomingMsg.ToString()].ToString()); objUser.IsLocationHide = bool.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.IsLocationHide.ToString()].ToString()); objUser.UserType = int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.UserType.ToString()].ToString()); if (int.Parse(_objDataSet.Tables[0].Rows[0][Users.UserEnum.UserType.ToString()].ToString()) == 2) { UserBusiness objUserBus = new UserBusiness(); objUserBus.Website = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.Website.ToString()].ToString(); objUserBus.CompanyName = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.CompanyName.ToString()].ToString(); objUserBus.BusinessType = int.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.BusinessType.ToString()].ToString()); objUserBus.BusinessAddress = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.BusinessAddress.ToString()].ToString(); objUserBus.ZipCode = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.ZipCode.ToString()].ToString(); //Start - Modification on 17-Dec-09 for the enhancement 6 of the Phase 1 objUserBus.CompanyLogo = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.CompanyLogo.ToString()].ToString(); //End if (_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.Phone.ToString()] != DBNull.Value) { objUserBus.Phone = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.Phone.ToString()].ToString(); } objUserBus.HeaderBGColor = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.HeaderBGColor.ToString()].ToString(); objUserBus.HeaderLogo = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.HeaderLogo.ToString()].ToString(); if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.ObituaryLinkPage.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.ObituaryLinkPage.ToString()].ToString() == "")) objUserBus.ObituaryLinkPage = _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.ObituaryLinkPage.ToString()].ToString(); else objUserBus.ObituaryLinkPage = ""; if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsWebAddressOn.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsWebAddressOn.ToString()].ToString() == "")) objUserBus.IsWebAddressOn = bool.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsWebAddressOn.ToString()].ToString()); else objUserBus.IsWebAddressOn = false; if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsAddressOn.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsAddressOn.ToString()].ToString() == "")) objUserBus.IsAddressOn = bool.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsAddressOn.ToString()].ToString()); else objUserBus.IsAddressOn = false; if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsObUrlLinkOn.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsObUrlLinkOn.ToString()].ToString() == "")) objUserBus.IsObUrlLinkOn = bool.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsObUrlLinkOn.ToString()].ToString()); else objUserBus.IsObUrlLinkOn = false; if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsPhoneNoOn.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsPhoneNoOn.ToString()].ToString() == "")) objUserBus.IsPhoneNoOn = bool.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.IsPhoneNoOn.ToString()].ToString()); else objUserBus.IsPhoneNoOn = false; if (!(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.DisplayCustomHeader.ToString()] == null || _objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.DisplayCustomHeader.ToString()].ToString() == "")) objUserBus.DisplayCustomHeader = bool.Parse(_objDataSet.Tables[0].Rows[0][UserBusiness.UserRegistrationEnum.DisplayCustomHeader.ToString()].ToString()); else objUserBus.DisplayCustomHeader = false; objUserReg.UserBusiness = objUserBus; } objUserReg.Users = objUser; if (tributeId != 0) { Tributes objTribute = new Tributes(); objTribute.TributeId = tributeId; SessionValue objSession = new SessionValue(); objSession.UserId = objUser.UserId; objSession.UserEmail = objUser.Email; object[] param = { objTribute, objSession }; ConformAdmin(param); } } else { objUserReg.Users = null; } } catch (System.Data.SqlClient.SqlException sqlEx) { if (sqlEx.Number >= 50000) { Errors objError = new Errors(); objError.ErrorMessage = sqlEx.Message; objUserReg.CustomError = objError; } } }
/// <summary> /// Method to send email to user on confirmation of add as administrator. /// </summary> /// <param name="objUserDetails">SessionValue containing logged in user details.</param> /// <param name="objTributeDetails">Tribute details.</param> private void SendEmailForAdminConfirmation(SessionValue objUserDetails, Tributes objTributeDetails) { EmailMessages objEmail = EmailMessages.Instance; string strSubject = "Your Tribute Administrator Confirmation."; string strUrl = "http://" + objTributeDetails.TypeDescription.Replace(" ", "").ToLower() + "." + WebConfig.TopLevelDomain + "/" + objTributeDetails.TributeUrl; StringBuilder sbBody = new StringBuilder(); sbBody.Append("<font style='font-size: 12px; font-family:Lucida Sans;'><p>"); sbBody.Append("Congratulations " + (objUserDetails.FirstName != string.Empty ? (objUserDetails.FirstName + " " + objUserDetails.LastName) : objUserDetails.UserName)); sbBody.Append(",</p>"); sbBody.Append("<p>You were successfully added as an administrator to the " + objTributeDetails.TributeName + " " + objTributeDetails.TypeDescription + " Tribute!</p>"); sbBody.Append("<p><strong>Managing Your " + objTributeDetails.TypeDescription + " Tribute</strong><br/>"); sbBody.Append("• Sign in to your account at <a href='http://www." + WebConfig.TopLevelDomain + "'>http://www." + WebConfig.TopLevelDomain + "</a><br/>"); sbBody.Append("• View your tribute at <a href='" + strUrl + "'>" + strUrl + "</a><br/>"); sbBody.Append("• Add, modify or delete content at any time—in your <a href='http://" + WebConfig.TopLevelDomain + "/log_in.aspx'>“My Profile”</a> area, you can add additional administrators to assist in managing your tribute and choose to be notified by email when visitors add content to your tribute <br/>"); sbBody.Append("• Find help, managing your tribute or adding content, at the bottom of any page"); sbBody.Append("</p>"); sbBody.Append("<p><Strong>Getting Started</Strong><br/>"); sbBody.Append("We recommend that you begin by adding content to your tribute:<br/>"); sbBody.Append("1. Create the <a href='" + strUrl + "/story.aspx'>Story</a>—communicate information about the people <br/>"); sbBody.Append("2. Post an <a href='" + strUrl + "/events.aspx'>Event</a>—invite guests using the RSVP feature <br/>"); sbBody.Append("3. Add <a href='" + strUrl + "/photos.aspx'>Photos</a> and <a href='" + strUrl + "/videos.aspx'>Videos</a>—share with your friends and family </p>"); sbBody.Append("<p>-----<br/>"); sbBody.Append("Your Tribute Team"); sbBody.Append("</p></font>"); bool val = objEmail.SendMessages("Your Tribute<" + WebConfig.NoreplyEmail + ">", objUserDetails.UserEmail, strSubject, sbBody.ToString(), EmailMessages.TextFormat.Html.ToString()); }
public void SendEmailtoNewAdmin(Tributes objTributesUserInfo, SessionValue objGenralUserInfo, bool _Accept) { SendEmailForAdminConfirmation(objGenralUserInfo, objTributesUserInfo); }
public void ConformAdmin(Tributes objTributesUserInfo, SessionValue objGenralUserInfo, bool _Accept) { UserInfoResource objUser = new UserInfoResource(); if (_Accept == true) { object[] param = { objTributesUserInfo, objGenralUserInfo }; objUser.ConformAdmin(param); SendEmailForAdminConfirmation(objGenralUserInfo, objTributesUserInfo); } /*else { object[] param ={ objTributesUserInfo, objGenralUserInfo }; objUser.DeclineAdmin(param); }*/ }
public object SendSponsorEmailOnFreeUpgrade(object[] objValue) { StringBuilder sb = new StringBuilder(); UserRegistration objUserReg = new UserRegistration(); BillingResource objBillingResource = new BillingResource(); BillingHistory objBilling = new BillingHistory(); EmailManager objEmailManager = new EmailManager(); TributePackage objpackage = new TributePackage(); // return objBillingResource.InsertRecord(objValue); UserCreditcardDetails objCCdetail = new UserCreditcardDetails(); SessionValue objUser = new SessionValue(); Tributes objTribute = new Tributes(); String[] SponsorNameandMsgForEmail; object identity = new object(); //using (TransactionScope trans = new TransactionScope()) //{ // identity = objBillingResource.InsertRecord(objValue); // //Transaction Commited // trans.Complete(); //} objUserReg = (UserRegistration)objValue[0]; if (objValue.Length > 1) { objUser = (SessionValue)objValue[1]; objTribute = (Tributes)objValue[2]; objpackage = (TributePackage)objValue[3]; SponsorNameandMsgForEmail = (String[])objValue[4]; // Send the email to all the adminstrator if (objpackage.IsSponserHide) { if (SponsorNameandMsgForEmail[0] != string.Empty) { objEmailManager.SendSponsorMailsWithMessage(SponsorNameandMsgForEmail[0], SponsorNameandMsgForEmail[1], objTribute.TributeId, objTribute.TypeDescription, objTribute.TributeName, objTribute.TributeUrl, objpackage.EndDate != null ? DateTime.Parse(objpackage.EndDate.ToString()).ToString("MMMM dd, yyyy") : "Never", objpackage.PackageId); } /* commented by Mohit else if (objpackage.IsSponsor) { objEmailManager.SendSponsorMails(objUser.UserType == 1 ? objUser.UserName : objUser.FirstName, objUser.UserEmail, objTribute.TributeId, objTribute.TypeDescription, objTribute.TributeName, objTribute.TributeUrl, objpackage.EndDate != null ? DateTime.Parse(objpackage.EndDate.ToString()).ToString("MMMM dd, yyyy") : "Never", objpackage.PackageId); } */ else { objEmailManager.SendSponsorMails("An anonymous person has", "Your " + WebConfig.ApplicationWord + "<" + WebConfig.NoreplyEmail + ">", objTribute.TributeId, objTribute.TypeDescription, objTribute.TributeName, objTribute.TributeUrl, objpackage.EndDate != null ? DateTime.Parse(objpackage.EndDate.ToString()).ToString("MMMM dd, yyyy") : "Never", objpackage.PackageId); } //objEmailManager.SendSponsorMails(objUser.UserName, objUser.UserEmail, objTribute.TributeId, objTribute.TypeDescription, objTribute.TributeName, objTribute.TributeUrl, objUserReg.UserCreditcardDetails.ExpirationDate.ToString("MMMM dd, yyyy"), objpackage.PackageId); } } return identity; }
/// <summary> /// Method to update the tribute theme /// </summary> /// <param name="objTheme">Tribute entity containing Tribute Id, Theme Id</param> public void UpdateTributeTheme(Tributes objTheme) { TemplateResource objTemplate = new TemplateResource(); object[] param = { objTheme }; objTemplate.UpdateTributeTheme(param); }
/// <summary> /// /// </summary> /// <param name="objTribute"></param> /// <returns></returns> public Templates GetExistingFolderName(Tributes objTribute) { return FacadeManager.TributeThemeManager.GetExistingFolderName(objTribute); }
/// <summary> /// To get tribute details on tributeId /// </summary> /// <param name="objTribute"></param> /// <returns></returns> public Tributes GetTributeSessionForId(Tributes objTribute) { return FacadeManager.TributeManager.GetTributeSessionForId(objTribute); }
public void UpdateVideoTributeDetail(Tributes objTribute) { try { FacadeManager.VideoManager.UpdateVideoTributeDetail(objTribute); } catch (Exception ex) { throw ex; } }
public void SendEmailtoNewAdmin(Tributes objTributesUserInfo, SessionValue objGenralUserInfo, bool _Accept) { FacadeManager.UserInfoManager.SendEmailtoNewAdmin(objTributesUserInfo, objGenralUserInfo, _Accept); }
public void UpdateEmailAlertsTest() { UserInfoManager target = new UserInfoManager(); // TODO: Initialize to an appropriate value int UserId = InsertDummyUser("tj_op"); //////////////////////////Get tribute of type 0 for userId////GetMyTributes unit test// int tributeId = 0; GetMyTributes _objtribute = new GetMyTributes(); _objtribute.UserId = UserId; object[] _param = { _objtribute, 0, 1, 1 }; if (_objtribute.CustomError == null) { List<GetMyTributes> Mytributes = new List<GetMyTributes>(); Mytributes = target.GetMyTributes(_param); Assert.AreEqual(true, Mytributes.Count > 0); tributeId = Mytributes[0].TributeId; } /////////////////////////// Tributes objTribute = new Tributes(); objTribute.UserTributeId = UserId; objTribute.TributeId = tributeId; objTribute.IsActive = false; object[] _Tributes = { objTribute }; // TODO: Initialize to an appropriate value target.UpdateEmailAlerts(_Tributes); /////GetMyTribute Unit test///// GetMyTributes objtribute = new GetMyTributes(); objtribute.UserId = UserId; object[] param = { objtribute, tributeId }; List<GetMyTributes> mytribute = target.GetMyTribute(param); Assert.AreEqual(mytribute[0].TributeId, tributeId); if (mytribute[0].TributeId == tributeId) { Assert.AreEqual(false, mytribute[0].EmailAlert); } //Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public IList<Tributes> TributeList(Tributes tributes) { return FacadeManager.TributeManager.GetTributeList(tributes); }
public void SendPhotoEmail(List<Photos> objPhotoList) { //to send mail TributeResource objTribute = new TributeResource(); Tributes objTrib = new Tributes(); objTrib.TributeId = int.Parse(objPhotoList[0].UserTributeId.ToString()); objTrib.TypeDescription = objPhotoList[0].ModuleTypeName; object[] paramTrib = { objTrib }; List<UserInfo> objUser = objTribute.GetTributeAdministrators(paramTrib); if (objUser.Count > 0) { Photos objPhoto = objPhotoList[objPhotoList.Count - 1]; SendEmail(objUser, "Photo", objPhoto); } //Function to send the mail to the list of users who have added the Tribute in their list of favourites List<UserInfo> objUserFav = objTribute.GetFavouriteTributeUsers(paramTrib); if (objUserFav.Count > 0) { Photos objPhoto = objPhotoList[objPhotoList.Count - 1]; //As per discussion with Rupendra: will send the mail in "To" field. //ie a comma separated list of users in the "to" field SendEmail(objUserFav, "Photo", objPhoto); } }
internal bool GetIsMobileViewOn(Tributes oTribute) { return FacadeManager.TributeManager.GetIsMobileViewOn(oTribute); }
/// <summary> /// Method to get the theme for the tribute /// </summary> /// <param name="objTribute">Filled tribute entity</param> /// <returns>Filled Template entity.</returns> public Templates GetThemeForTribute(Tributes objTribute) { return FacadeManager.TributeThemeManager.GetThemeForTribute(objTribute); }
/// <summary> /// fetch all admins /// </summary> /// <returns></returns> internal List<UserInfo> GetTributeAdmins(Tributes objtrb) { return FacadeManager.TributeManager.GetTributeAdmins(objtrb); }
/// <summary> /// GetTributeUrlOnOldTributeUrl /// </summary> /// <param name="_tributeUrl"></param> /// <returns></returns> public Tributes GetTributeUrlOnOldTributeUrl(Tributes objtrb,string ApplicationType) { return FacadeManager.TributeManager.GetTributeUrlOnOldTributeUrl(objtrb, ApplicationType); }
/// <summary> /// /// </summary> /// <param name="objTheme"></param> /// <returns></returns> public Templates GetExistingFolderName(Tributes objTheme) { TemplateResource objTemplate = new TemplateResource(); object[] param = { objTheme }; return objTemplate.GetExistingFolderName(param); }
/// <summary> /// Method to get the theme for the tribute /// </summary> /// <param name="objTheme">Template Object</param> /// <returns></returns> public Templates GetThemeForTribute(Tributes objTheme) { TemplateResource objTemplate = new TemplateResource(); object[] param = { objTheme }; return objTemplate.GetThemeForTribute(param); }
/// <summary> /// Method to get the list of tributes to add video tributes /// </summary> /// <param name="objUserId">Tribute entity containing user id</param> /// <returns>List of tributes</returns> public List<Tributes> GetListOfTributesForVideoTribute(Tributes objUserId) { VideoResource objVideoResource = new VideoResource(); object[] param = { objUserId }; return objVideoResource.GetListOfTributesForVideoTribute(param); }