Example #1
0
        public Guid createPaymentSchedule(PaymentSchedule PaymentSchedule)
        {
            context.PaymentSchedules.Add(PaymentSchedule);
            context.SaveChanges();

            return(PaymentSchedule.PayrollCategoryId);
        }
Example #2
0
        public Guid createPerson(Person person)
        {
            context.Persons.Add(person);
            context.SaveChanges();

            return(person.Id);
        }
Example #3
0
        // States
        public Guid createState(State state)
        {
            state.Id = Guid.NewGuid();
            context.States.Add(state);
            context.SaveChanges();

            return(state.Id);
        }