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

            entity.SetEntity(CustomerPerson);

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