Exemplo n.º 1
0
        private void fnSaveClient(string name)
        {
            _oBLCliente = new BLCliente();
            Cliente oCliente = new Cliente();

            oCliente.NombreCliente = name;
            oCliente.FechaCreacion = DateTime.Now;
            //Calling bl method for saving in database (Edit or new)
            if (isUpdate)
            {
                oCliente.IdCliente = this.IdCliente;
                _oBLCliente.Edit(oCliente);
                UpdatedCliente = _oBLCliente.GetOne(this.IdCliente);
            }
            else
            {
                _oBLCliente.AddNew(oCliente);
            }
        }