示例#1
0
 public void CreateCustomer(int age, string name, Preferences preferences, Disabilities disabilities, float socialSatisfaction)
 {
     this.age                = age;
     this.customerName       = name;
     this.preferences        = preferences;
     this.disabilities       = disabilities;
     this.socialSatisfaction = socialSatisfaction;
 }
示例#2
0
 public Employee(Age age, Religion religion, Ethnecity ethnicity, Gender gender, CivilState civil_State, Disabilities disabilities)
 {
     this.age          = age;
     this.religion     = religion;
     this.ethnicity    = ethnicity;
     this.gender       = gender;
     this.civil_State  = civil_State;
     this.disabilities = disabilities;
 }
 public bool Delete(Disabilities entity)
 {
     _db.Disabilities.Remove(entity);
     return(Save());
 }
 public bool Update(Disabilities entity)
 {
     _db.Disabilities.Update(entity);
     return(Save());
 }
 public bool Create(Disabilities entity)
 {
     _db.Disabilities.Add(entity);
     return(Save());
 }