public static MvcIdentityModel New()
        {
            var identity = new MvcIdentityModel()
            {
                Guid = Guid.NewGuid()
            };

            return(identity);
        }
        public static MvcIdentityModel New(MvcIdentityModel identity)
        {
            if (identity == default(MvcIdentityModel))
            {
                return(default(MvcIdentityModel));
            }

            var computed = MvcIdentityModel.New();

            computed.Username  = identity.Username;
            computed.FirstName = identity.FirstName;
            computed.LastName  = identity.LastName;
            computed.Email     = identity.Email;
            computed.Password  = identity.Password;
            return(computed);
        }
        public static MvcIdentityModel New(DatabaseIdentityModel identity)
        {
            if (identity == default(DatabaseIdentityModel))
            {
                return(default(MvcIdentityModel));
            }

            var computed = new MvcIdentityModel()
            {
                Guid      = identity.Guid,
                Username  = identity.Username,
                FirstName = identity.FirstName,
                LastName  = identity.LastName,
                Email     = identity.Email,
                Password  = identity.Password,
                Status    = identity.Status
            };

            return(computed);
        }