public void Update(int ID, CustomerPersonEntity CustomerPerson) { var entity = this._DB.Get(ID); entity.SetEntity(CustomerPerson); this._DB.Edit(entity); }
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; }
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; }
public void Add(CustomerPersonEntity CustomerPerson) { this._DB.Add(CustomerPerson); }
public void Update(int ID, CustomerPersonEntity Entity) { this._ICustomerPersonService.Update(ID, Entity); }
public CustomerPersonEntity One(int ID, CustomerPersonEntity Entity) { Entity.CustomerID = ID; this._ICustomerPersonService.Add(Entity); return(Entity); }