// GET api/<controller> public Hashtable Get(int id) { Hashtable ht = new Hashtable(); RewardInfo ai = new RewardInfo(); try { ht.Add("state", ai.DeleteOne(id)); } catch (Exception e) { ht.Add("state", false); ht.Add("reason", e.Message); } return(ht); }