Beispiel #1
0
 public async Task <MessageModel <UserRole> > AddUserRole(int uid, int rid)
 {
     return(new MessageModel <UserRole>()
     {
         success = true,
         msg = "添加成功",
         response = await _userRoleServices.SaveUserRole(uid, rid)
     });
 }
        public async Task <object> AddUserRole(int uid, int rid)
        {
            var model = await _userRoleServices.SaveUserRole(uid, rid);

            return(Ok(new
            {
                success = true,
                data = model
            }));
        }