コード例 #1
0
        public IHttpActionResult GetAllMaterial()
        {
            List <Object> list = new List <Object>();

            list = materialLogic.GetListMaterial();
            if (list == null)
            {
                //La respuesta no tiene contenido code 204
                return(StatusCode(HttpStatusCode.NoContent));
            }
            else
            {
                // ok code 200
                return(Ok(list));
            }
        }