| | |
| | | public BoxingInfoController(IBoxingInfoService service) : base(service) |
| | | { |
| | | } |
| | | |
| | | // POST api/<BoxingInfoController> |
| | | [HttpPost,HttpGet, Route("AddBoxingInfo"), AllowAnonymous] |
| | | public Task<WebResponseContent> AddBoxingInfoAsync([FromBody] AddBoxingDto boxingInfo) |
| | | { |
| | | return Service.AddBoxingInfoAsync(boxingInfo); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("DeleteBoxingInfoAsync"), AllowAnonymous] |
| | | public Task<WebResponseContent> DeleteBoxingInfoAsync([FromBody] AddBoxingDto boxingInfo) |
| | | { |
| | | return Service.DeleteBoxingInfoAsync(boxingInfo); |
| | | } |
| | | } |