private Guid CreateBasket(Guid userId) { var basketId = Guid.NewGuid(); _basketRepository.CreateItem(new Basket { Id = basketId, DateCreate = DateTime.Now, DateUpdate = DateTime.Now, UserId = userId, Total = 0, PublicId = StringHelper.RandomString(10).ToLower() }); return(basketId); }