public Cart GetCart(int id) { try { return(_context.GetCartById(id)); } catch (DbException e) { //TODO Add Exception handling return(null); } }