예제 #1
0
        public void AddFreelancer(string firstName, string lastName)
        {
            var freelancer = new Freelancer()
            {
                FirstName = firstName, LastName = lastName
            };

            _context.Freelancer.Add(freelancer);
            _context.SaveChanges();
        }
 public void AddFreelancer(Freelancer freelancer)
 {
     _context.Freelancer.Add(freelancer);
     _context.SaveChanges();
 }