Exemplo n.º 1
0
        public void UpdateDirector(DirectorDTO i)
        {
            Director d = ctx.Directors.First(f => f.Id == f.Id);


            d.FirstName = i.FirstName;
            d.LastName  = i.LastName;
            d.Email     = i.Email;
            d.Phone     = i.Phone;
            d.Education = i.Education;
        }
Exemplo n.º 2
0
 public void InsertDirector(DirectorDTO i)
 {
     ctx.Directors.Add(new Director()
     {
         //Id = i.Id,
         FirstName = i.FirstName,
         LastName  = i.LastName,
         Email     = i.Email,
         Phone     = i.Phone,
         Education = i.Education
     });
 }