public async Task <bool> Delete(object id) { var glue = _repoStatus.FindById(id); _repoStatus.Remove(glue); return(await _repoStatus.SaveAll()); }
public IActionResult Delete(int idStatus) { try { repository.Delete(repository.FindById(idStatus)); return(Ok("Status deletado com sucesso!")); } catch (Exception e) { return(StatusCode(500, e.Message)); } }
public StatusModel FindById(long id) { return(_repository.FindById(id)); }
public Status FindById(long id) { return(repository.FindById(id)); }