Example #1
0
        public FunctionResult <AppGrant> Create(AppGrant info)
        {
            var r = new FunctionResult <AppGrant>(); int id = AppGrantDal.Add(info); if (id > 0)

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

            return(r);
        }
Example #2
0
 public FunctionOpenResult <bool> UpdateByID(AppGrant info)
 {
     var r = new FunctionOpenResult <bool>(); r.Data = AppGrantDal.Update(info) > 0; return(r);
 }