Beispiel #1
0
        public ReturnModel Insert(VInUser vInUser)
        {
            var db = new BaseRespository <S_User>();

            return(new ReturnModel {
                d = db.Create(SimpleMapper.Map <VInUser, S_User>(vInUser)), s = true, m = "数据添加成功"
            });
        }
        public ReturnModel Insert(VOutUser vOutUser)
        {
            var userdb = new BaseRespository <S_User>();

            return(new ReturnModel {
                d = userdb.Create(SimpleMapper.Map <VOutUser, S_User>(vOutUser))
            });
        }