コード例 #1
0
        public ActionResult SearchClients(string txtname, string txtcpf, long txtclient = -1)
        {
            if (txtname == "")
            {
                txtname = "-1";
            }
            if (txtcpf == "")
            {
                txtcpf = "-1";
            }

            if (txtname == "-1" && txtcpf == "-1" && txtclient == -1)
            {
                MessageSeachClients();
            }

            Client objClient = new Client();

            objClient.Name     = txtname;
            objClient.IdClient = txtclient;
            objClient.Cpf      = txtcpf;

            List <Client> client = objClientNeg.findAllClient(objClient);

            return(View(client));
        }
コード例 #2
0
        public ActionResult GetCostumers(string txtName, string txtCpf, long txtClient = -1)
        {
            if (txtName == "")
            {
                txtName = "-1";
            }

            if (txtCpf == "")
            {
                txtCpf = "-1";
            }

            Client client = new Client();

            client.Name     = txtName;
            client.Cpf      = txtCpf;
            client.IdClient = txtClient;

            List <Client> list = clientNeg.findAllClient(client);

            return(View(list));
        }