Пример #1
0
        public string Create([FromBody] VmAgent vm)
        {
            var    bot     = new AiBot();
            string agentId = String.Empty;

            dc.DbTran(() =>
            {
                var agent    = vm.ToObject <Agent>();
                agent.UserId = CurrentUserId;
                agentId      = bot.CreateAgent(dc, agent);
            });

            return(agentId);
        }
Пример #2
0
 public void Update([FromBody] VmAgent agent)
 {
 }