/// <summary>
        /// 
        /// </summary>
        /// <param name="videoTributeId"></param>
        /// <param name="tributeId"></param>
        public void LinkVideoTribute(LinkVideoMemorialTribute objLinkTribute)
        {
            if (!Equals(objLinkTribute, null))
            {
                try
                {
                    //sets the parameters
                    string[] strParam = {
                                            "UserId",
                                            "VideoTributeId",
                                            "MemTributeId"
                                        };
                    //sets the types of parameters
                    DbType[] dbType = {
                                            DbType.Int64,
                                            DbType.Int64,
                                            DbType.Int64
                                      };
                    //sets the values in the entity to the parameters
                    object[] objValue = {
                                            objLinkTribute.UserId,
                                            objLinkTribute.VideoTributeId,
                                            objLinkTribute.MemTributeId
                                        };

                    //sends request to insert record and get the identity of the record inserted
                    base.UpdateRecord("usp_InsertLinkVideoMemTribute", strParam, dbType, objValue);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="videoTributeId"></param>
        /// <param name="tributeId"></param>
        public void LinkVideoTribute(LinkVideoMemorialTribute objLinkTribute)
        {
            try
            {

                FacadeManager.TributeManager.LinkVideoTribute(objLinkTribute);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="videoTributeId"></param>
 /// <param name="tributeId"></param>
 /// <returns></returns>
 public void LinkVideoTribute(LinkVideoMemorialTribute objLinkTribute)
 {
     TributeResource objResource = new TributeResource();
     using (TransactionScope trans = new TransactionScope())
     {
         objResource.LinkVideoTribute(objLinkTribute);
         trans.Complete();
     }
 }