Esempio n. 1
0
        // GET: api/armazem
        public IHttpActionResult Get()
        {
            List <Armazem> listaArmazens = null;

            try {
                listaArmazens = PriIntegration.GetArmazens();
            } catch (Exception) {
                return(InternalServerError());
            }

            if (listaArmazens == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(listaArmazens));
            }
        }