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

            var entity = new LegalStatusViewModel
            {
                LegalStatusID = model.LegalStatusID,
                LegalStatus   = model.LegalStatus
            };

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

            var model = new LegalStatusModel
            {
                LegalStatusID = entity.LegalStatusID,
                LegalStatus   = entity.LegalStatus
            };

            return(model);
        }