Ejemplo n.º 1
0
        /// <summary>
        /// Maps the request.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <returns></returns>
        public static GuestLinks MapRequest(GuestLinksModel model)
        {
            var request = new GuestLinks()
            {
                LinkName     = model.LinkName == null ? null : model.LinkName,
                LinkUrl      = model.LinkUrl == null ? null : model.LinkUrl,
                CreationDate = DateTime.UtcNow,
                //ExpirationDate = model.ExpirationDate == null ? null : model.ExpirationDate,
                GuestId = model.GuestId == null ? null : model.GuestId,
                //IsAllowAddRecipient = model.IsAllowAddRecipient,
                //NumberUsesAllowed = model.NumberUsesAllowed,
                Status = model.Status,
                //UploadedEmails = model.UploadedEmails == null ? null : model.UploadedEmails,
                //UploadLimit = model.UploadLimit,
                //UploadLimit = model.UploadLimit,
                UserId = model.UserId
            };

            return(request);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the security settings.
 /// </summary>
 /// <param name="entity">The entity.</param>
 private void AddSecuritySettings(ref GuestLinks entity)
 {
     entity.SecuritySettings.GustLinkId = entity.GuestLinkID;
     this.m_GuestLinkSecuritySettingsRepo.Add(entity.SecuritySettings);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds the expiry settings.
 /// </summary>
 /// <param name="entity">The entity.</param>
 private void AddExpirySettings(ref GuestLinks entity)
 {
     entity.ExpirySettings.GustLinkId = entity.GuestLinkID;
     this.m_GuestLinkExpirySettingRepo.Add(entity.ExpirySettings);
 }