예제 #1
0
        public IHttpActionResult Get()
        {
            List <AppType> lat = (List <AppType>)MyCache.GetItem("apptypes");

            if (lat == null)
            {
                return(InternalServerError());
            }
            else
            {
                return(Ok(lat));
            }
        }
예제 #2
0
 public IHttpActionResult Get(decimal Amount = 0)
 {
     if (Amount == 0)
     {
         string fee = (string)MyCache.GetItem("fee");
         if (fee == null || fee.Length == 0)
         {
             return(InternalServerError());
         }
         else
         {
             return(Ok(fee));
         }
     }
     else
     {
         return(Ok(NewTransaction.GetFee(Amount)));
     }
 }