Beispiel #1
0
        public void Update(int ID, CustomerPersonEntity CustomerPerson)
        {
            var entity = this._DB.Get(ID);

            entity.SetEntity(CustomerPerson);

            this._DB.Edit(entity);
        }
Beispiel #2
0
 public void SetEntity(CustomerPersonEntity Entity)
 {
     this.Name      = Entity.Name;
     this.Phone     = Entity.Phone;
     this.Tel       = Entity.Tel;
     this.Email     = Entity.Email;
     this.Position  = Entity.Position;
     this.IsDeleted = Entity.IsDeleted;
 }
Beispiel #3
0
 public CustomerPersonInfo(CustomerPersonEntity Entity)
 {
     this.ID         = Entity.ID;
     this.CustomerID = Entity.CustomerID;
     this.Name       = Entity.Name;
     this.Phone      = Entity.Phone;
     this.Tel        = Entity.Tel;
     this.Email      = Entity.Email;
     this.Position   = Entity.Position;
     this.IsDeleted  = Entity.IsDeleted;
 }
Beispiel #4
0
 public void Add(CustomerPersonEntity CustomerPerson)
 {
     this._DB.Add(CustomerPerson);
 }
Beispiel #5
0
 public void Update(int ID, CustomerPersonEntity Entity)
 {
     this._ICustomerPersonService.Update(ID, Entity);
 }
Beispiel #6
0
 public CustomerPersonEntity One(int ID, CustomerPersonEntity Entity)
 {
     Entity.CustomerID = ID;
     this._ICustomerPersonService.Add(Entity);
     return(Entity);
 }