public ActionResult <Contato> DeleteContato(int id, int idContato) { try { return(_service.DeleteContato(id, idContato)); } catch (NotFoundException e) { return(NotFound(e.Message)); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Contato> DeleteContato(int id, int idContato) { try { return(_service.DeleteContato(id, idContato)); } catch (NotFoundException e) { return(NotFound(e.Message)); } catch (Exception e) { return(BadRequest(e.Message)); } }