Ejemplo n.º 1
0
        public void GetByNumberKey(int keyInnerId)
        {
            if (keyInnerId < 1)
            {
                entitiesView.MessageError(errorInnerId);
                return;
            }
            var client = clientModel.GetByNumberKey(keyInnerId);

            if (client == null)
            {
                entitiesView.Bind(new List <ModelViewClient>());
                return;
            }
            var clients = new List <ModelViewClient>
            {
                client
            };

            entitiesView.Bind(clients);
        }