public IActionResult Delete(string shortPath, string token) { _shortenerService.Delete(shortPath, token); return(View("Delete", new ShortenerDeleteModel { ShortPath = shortPath })); }
public bool DeletarUrl([FromBody] int id) { return(_service.Delete(id)); }