public static List <Produtos> GetListTodo() { List <Produtos> list = null; using (var db = new DAL.Repositorio <Produtos>()) { try { list = db.GetListTodo(); } catch (Exception) { throw; } return(list); } }