예제 #1
0
 public Affectation Store(Affectation affectation)
 {
     affectation.Datetime = DateTime.Now;
     _afdtechContext.Affectations.Add(affectation);
     _afdtechContext.SaveChanges();
     return(affectation);
 }
예제 #2
0
 public Project Store(Project project)
 {
     _afdtechContext.Projects.Add(project);
     _afdtechContext.SaveChanges();
     return(project);
 }
예제 #3
0
 public Consultant Store(Consultant consultant)
 {
     _afdtechContext.Consultants.Add(consultant);
     _afdtechContext.SaveChanges();
     return(consultant);
 }