/****************************************************************************
         * Created By :  Saddam
         * Created For : Service for Update PermissionInboundImageVideoBankData
         *****************************************************************************************/
        public void UpdatePermissionInboundImageVideoBankData(PermissionInboundImageVideoBankData PermissionInboundImageVideoBankData)
        {
            PermissionInboundImageVideoBankData.ModifiedDate = DateTime.Now;

            PermissionInboundImageVideoBankData.DeactivateBy   = null;
            PermissionInboundImageVideoBankData.DeactivateDate = null;
            _PermissionInboundImageVideoBankData.Update(PermissionInboundImageVideoBankData);
        }
        //public PermissionInboundImageVideoBank getNewPermissionInboundImageVideoBankById(int id, int PartyId)
        //{
        //    return _PermissionInboundImageVideoBank.Table.Where(i => i.PermissionInboundId == id && i.ImageBankId == PartyId && i.Deactivate == "N").FirstOrDefault();
        //}



        public void InsertNewPermissionInboundImageVideoBankData(PermissionInboundImageVideoBankData PermissionInboundImageVideoBankData)
        {
            PermissionInboundImageVideoBankData.Deactivate     = "N";
            PermissionInboundImageVideoBankData.EntryDate      = DateTime.Now;
            PermissionInboundImageVideoBankData.ModifiedBy     = null;
            PermissionInboundImageVideoBankData.ModifiedDate   = null;
            PermissionInboundImageVideoBankData.DeactivateBy   = null;
            PermissionInboundImageVideoBankData.DeactivateDate = null;

            _PermissionInboundImageVideoBankData.Insert(PermissionInboundImageVideoBankData);
        }