/// <summary>
        /// To the view model.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <returns></returns>
        public static ContactMethodsViewModel ToViewModel(this ContactMethodModel model)
        {
            if (model == null)
            {
                return(null);
            }

            var entity = new ContactMethodsViewModel
            {
                ContactMethodID = model.ContactMethodID,
                ContactMethod   = model.ContactMethod,
                IsSystem        = model.IsSystem
            };

            return(entity);
        }
        /// <summary>
        /// To the model.
        /// </summary>
        /// <param name="entity">The entity.</param>
        /// <returns></returns>
        public static ContactMethodModel ToModel(this ContactMethodsViewModel entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var model = new ContactMethodModel
            {
                ContactMethodID = entity.ContactMethodID,
                ContactMethod   = entity.ContactMethod,
                IsSystem        = entity.IsSystem
            };

            return(model);
        }