public IActionResult Delete(string shortPath, string token)
 {
     _shortenerService.Delete(shortPath, token);
     return(View("Delete", new ShortenerDeleteModel {
         ShortPath = shortPath
     }));
 }
Пример #2
0
 public bool DeletarUrl([FromBody] int id)
 {
     return(_service.Delete(id));
 }