Esempio n. 1
0
        public virtual CommonResponse BatchUpdate([FromBody] List <PageInput> updateModels)
        {
            var result = _service.BatchUpdate(updateModels);

            return(new CommonResponse()
            {
                code = result ? (int)ResponseCode.OK : (int)ResponseCode.BadRequest,
                data = new
                {
                    Success = result
                }
            });
        }