Пример #1
0
        public async Task <ActionResult <Partner> > Delete([FromForm] int key)
        {
            var request = new PartnersDeleteRequest {
                Id = key
            };

            return(await _partnersService.Delete(request).Convert <Partner>(this));
        }
Пример #2
0
 public async Task <IActionResult> Delete(int Id)
 {
     return(Ok(await _PartnersService.Delete(Id)));
 }