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); }
public DTO.Location Add2(DTO.Location newLocation) { _context.Add(newLocation); _context.SaveChanges(); return(newLocation); }