Exemplo n.º 1
0
        /// <summary>
        /// 批量添加接口
        /// </summary>
        /// <param name="operatelogrequest"></param>
        /// <returns></returns>
        public BasicResponse AddOperatelogs(OperatelogAddListRequest operatelogrequest)
        {
            if (operatelogrequest.OperatelogInfo.Count > 0)
            {
                foreach (OperatelogInfo TempOperatelogInfo in operatelogrequest.OperatelogInfo)
                {
                    var _operatelog      = ObjectConverter.Copy <OperatelogInfo, OperatelogModel>(TempOperatelogInfo);
                    var resultoperatelog = _Repository.AddOperatelog(_operatelog);
                }
            }
            var operatelogresponse = new BasicResponse();

            return(operatelogresponse);
        }
Exemplo n.º 2
0
 public BasicResponse AddOperatelogs(OperatelogAddListRequest operatelogrequest)
 {
     return(_operatelogService.AddOperatelogs(operatelogrequest));
 }
Exemplo n.º 3
0
        /// <summary>
        /// 批量添加接口
        /// </summary>
        /// <param name="operatelogrequest"></param>
        /// <returns></returns>
        public BasicResponse AddOperatelogs(OperatelogAddListRequest operatelogrequest)
        {
            var responseStr = HttpClientHelper.Post(Webapi + "/v1/Operatelog/AddOperatelogs?token=" + Token, JSONHelper.ToJSONString(operatelogrequest));

            return(JSONHelper.ParseJSONString <BasicResponse>(responseStr));
        }