public void AlteraFerramenta(FerramentaViewModel ferramenta) { try { HelperDAO.ExecutaProcedure("spAlteraFerramenta", CriaParametro(ferramenta)); } catch (Exception ex) { throw ex; } }
public void Excluir(int id) { try { var parametro = new SqlParameter[] { new SqlParameter("id", id) }; HelperDAO.ExecutaProcedure("spExcluiFerramenta", parametro); } catch (Exception ex) { throw ex; } }