Beispiel #1
0
        public ReturnMessageModel UserIns(UserModel model)
        {
            ReturnMessageModel result         = new ReturnMessageModel();
            ObjectParameter    returnMessaage = new ObjectParameter("ReturnMessage", typeof(String));

            using (TestDBEntities db = new TestDBEntities())
            {
                db.SpUserIns(model.UserName, returnMessaage);
                result.ReturnMessage = returnMessaage.Value.ToString();
                return(result);
            }
        }