Ejemplo n.º 1
0
        public IHttpActionResult LookupName(decimal Lat, decimal Lang)
        {
            string    result = null;
            Exception ret    = DoService(() =>
            {
                IHAAService haaSvc = UnityHelper.UnityContainer.Resolve <IHAAService>();
                result             = haaSvc.LookupName(Lat, Lang);
            });

            if (ret == null)
            {
                return(Ok(result));
            }
            return(Ok(ret));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetRequestCount(string URL, string RequestName)
        {
            int       result = 0;
            Exception ret    = DoService(() =>
            {
                IHAAService haaSvc = UnityHelper.UnityContainer.Resolve <IHAAService>();
                result             = haaSvc.GetApiCount(URL, RequestName);
            });

            if (ret == null)
            {
                return(Ok(result));
            }
            return(Ok(ret));
        }