예제 #1
0
        public void Create(Guid SellerId, Guid CustomerId)
        {
            Chat chat = new Chat
            {
                SellerId   = SellerId,
                CustomerId = CustomerId
            };

            context.Add(chat);
            context.SaveChanges();
        }
예제 #2
0
 public void Add(Customer customer)
 {
     context.Add(customer);
     context.SaveChanges();
 }