Exemple #1
0
        public async Task <MessageModel <string> > Put([FromBody] UserRole request)
        {
            var data = new MessageModel <string>();

            if (request.Id > 0)
            {
                data.success = await _userRoleServices.Update(request);

                if (data.success)
                {
                    data.msg      = "更新成功";
                    data.response = request?.Id.ObjToString();
                }
            }

            return(data);
        }