public async Task <ActionResult <Partner> > Delete([FromForm] int key) { var request = new PartnersDeleteRequest { Id = key }; return(await _partnersService.Delete(request).Convert <Partner>(this)); }
public async Task <IActionResult> Delete(int Id) { return(Ok(await _PartnersService.Delete(Id))); }