Esempio n. 1
0
        public FunctionResult <AppInstanceToken> Create(AppInstanceToken info)
        {
            var r = new FunctionResult <AppInstanceToken>(); int id = AppInstanceTokenDal.Add(info); if (id > 0)

            {
                r.Data = info; r.Data.AppInstanceTokenId = id;
            }

            return(r);
        }
Esempio n. 2
0
 public FunctionOpenResult <bool> UpdateByID(AppInstanceToken info)
 {
     var r = new FunctionOpenResult <bool>(); r.Data = AppInstanceTokenDal.Update(info) > 0; return(r);
 }