Example #1
0
 public void Create(Domain.StaffAgg.Staff entity)
 {
     _context.Staff.Add(entity);
     _context.SaveChanges();
 }
Example #2
0
        public void Create(CreateStaff command)
        {
            var staff = new Domain.StaffAgg.Staff(command.Name, command.RegisterDate);

            _staffRepository.Create(staff);
        }