コード例 #1
0
        public DTO.Order Add(DTO.Order newOrder)
        {
            var dao = DTO.Order.toDAO(newOrder);

            _context.Add(dao);
            _context.SaveChanges();

            var dto = DTO.Order.fromDAO(dao);

            return(dto);
        }
コード例 #2
0
 public DTO.Location Add2(DTO.Location newLocation)
 {
     _context.Add(newLocation);
     _context.SaveChanges();
     return(newLocation);
 }