Esempio n. 1
0
        // GET: api/Client/pepe
        public IEnumerable <ClientInformation> Get(string clientName, string possiblyStolen = null)
        {
            var rep = new ClientInformationRepository();

            bool?possiblyStolenArgument = string.IsNullOrEmpty(possiblyStolen) || !bool.Parse(possiblyStolen) ? (bool?)null : true;

            return(rep.GetClientsBy(clientName, possiblyStolenArgument));
        }