public int AgentAdd([FromForm] IOT.Core.Model.Agent a) { logger.Debug($"用户对代理商进行添加,添加的名称为:{a.AgentName}"); int i = _agentRepository.AddAgent(a); return(i); }
public int AgentUpt([FromForm] IOT.Core.Model.Agent a) { logger.Debug($"用户对代理商进行修改,修改的ID为:{a.AgentId}"); a.Consume = 15; a.Money = 123; a.Fans = "何垚最帅了"; a.AgentState = 1; a.NFans = "何垚是个男的"; return(_agentRepository.UptAgent(a)); }
public int AgentUpt(IOT.Core.Model.Agent a) { return(_agentRepository.UptAgent(a)); }