示例#1
0
 public IActionResult Update([FromBody] H2HWorldCupDTO h2hWorldCupDTO)
 {
     _h2HWorldCupService.Update(_mapper.Map <Head2HeadWorldCup>(h2hWorldCupDTO));
     return(new OkObjectResult(true));
 }
示例#2
0
        public async Task <IActionResult> Add([FromBody] H2HWorldCupDTO h2hWorldCupDTO)
        {
            await _h2HWorldCupService.Add(_mapper.Map <Head2HeadWorldCup>(h2hWorldCupDTO));

            return(new OkObjectResult(true));
        }