예제 #1
0
        public Ticket CreateNewTicket(Ticket SpaceTicket)
        {
            var ticket = _WSSC.Ticket.Add(SpaceTicket).Entity;

            _WSSC.SaveChanges();
            return(ticket);
        }
예제 #2
0
        public User CreateNewUser(User newUser)
        {
            var user = _WSSC.Users.Add(newUser).Entity;

            _WSSC.SaveChanges();
            return(user);
        }