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

            entity.SetEntity(CustomerPerson);

            this._DB.Edit(entity);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public void Add(CustomerPersonEntity CustomerPerson)
 {
     this._DB.Add(CustomerPerson);
 }
Esempio n. 5
0
 public void Update(int ID, CustomerPersonEntity Entity)
 {
     this._ICustomerPersonService.Update(ID, Entity);
 }
Esempio n. 6
0
 public CustomerPersonEntity One(int ID, CustomerPersonEntity Entity)
 {
     Entity.CustomerID = ID;
     this._ICustomerPersonService.Add(Entity);
     return(Entity);
 }