public IEnumerable <ShoppingCartDetailDto> GetDetailsByUser(int userId) { if (userId <= 0) { return(null); } using (var cxt = DbContext(DbOperation.Read)) { var repo = new ShoppingCartRepo(cxt); return(repo.GetDetailsByUser(userId)); } }