예제 #1
0
        public Task RegisterOrder(Order order)
        {
            //todo: is it good practice?
            _context.Add(order);
            _context.SaveChanges();

            return(Task.FromResult(true));
        }
예제 #2
0
 public Task RegisterOrder(Order order)
 {
     _context.Add(order);
     _context.SaveChanges();
     return(Task.FromResult(true));
 }