예제 #1
0
        private List <BeltVM> BeltList2BeltVMList(List <Belt> beltList)
        {
            List <BeltVM> BeltVMList = new List <BeltVM>();

            foreach (Belt belt in beltList)
            {
                BeltVM beltVM = new BeltVM();
                beltVM.belt = belt;
                BeltVMList.Add(beltVM);
            }

            return(BeltVMList);
        }
예제 #2
0
        public ActionResult UpdateBelt([FromBody] BeltVM value)
        {
            _warriorAppService.UpdateBelt(value);

            return(Response());
        }
예제 #3
0
        public ActionResult AddBelt([FromBody] BeltVM value)
        {
            _warriorAppService.AddBelt(value);

            return(Response("", value));
        }
예제 #4
0
        public void UpdateBelt(BeltVM value)
        {
            var data = _mapper.Map <BeltUpdateCommand>(value);

            _writeData.UpdateBelt(data);
        }
예제 #5
0
        public void AddBelt(BeltVM value)
        {
            var data = _mapper.Map <BeltAddCommand>(value);

            _writeData.AddBelt(data);
        }
예제 #6
0
        public async Task <HttpResponseMessage> UpdateBelt(BeltVM value)
        {
            var url = $"{_baseUrl}/UpdateBelt";

            return(await _client.PutAsJson(url, value));
        }
예제 #7
0
        public async Task <ActionResult> UpdateBelt([FromBody] BeltVM value)
        {
            var response = await _warriorService.UpdateBelt(value);

            return(Ok());
        }
예제 #8
0
        public async Task <ActionResult> AddBelt([FromBody] BeltVM value)
        {
            var response = await _warriorService.AddBelt(value);

            return(Created("", value));
        }