Ejemplo n.º 1
0
        public void Edit(Client client)
        {
            var currentClient = this.GetById(client.Id);

            currentClient.Name = client.Name;
            currentClient.Address = client.Address;
            currentClient.City = client.City;
            currentClient.Referent = client.Referent;
            currentClient.Tel1 = client.Tel1;
            currentClient.Tel2 = client.Tel2;
            currentClient.CellPhone = client.CellPhone;
            currentClient.Email = client.Email;

            Uow.Clients.Edit(currentClient);
            Uow.Commit();
        }
Ejemplo n.º 2
0
        private void ClientCreated(object sender, Client client)
        {
            RefreshClientsDropdown();
            ddlClient.SelectedValue = client.Id;

            ddlClient_SelectedIndexChanged(null, null);
        }
Ejemplo n.º 3
0
 private void OnClientCreated(Client Client)
 {
     if (ClientCreated != null)
     {
         ClientCreated(this, Client);
     }
 }
Ejemplo n.º 4
0
 private void FrmCreateEditClient_Load(object sender, EventArgs e)
 {
     if (_clientId != Guid.Empty)
     {
         using (var service = _serviceFactory.Create<IClientService>())
         {
             _client = service.GetById(_clientId);
             this.Text = "Editar Cliente";
         }
     }
     else
     {
         this.Text = "Crear Cliente";
     }
 }
Ejemplo n.º 5
0
 public void Create(Client client)
 {
     Uow.Clients.Add(client);
     Uow.Commit();
 }