Beispiel #1
0
        public virtual CommonResponse BatchAdd([FromBody] List <PageInput> addModels)
        {
            var result = _service.BatchAdd(addModels);

            return(new CommonResponse()
            {
                code = result != 0 ? (int)ResponseCode.Created : (int)ResponseCode.BadRequest,
                data = new
                {
                    Success = result != 0 ? true : false,
                    AddedID = result
                }
            });
        }