public IHttpActionResult Get(string Key) { List <Charge> lc = Charge.GetChargesByAssocKey(Key); if (lc == null) { return(InternalServerError()); } else { return(Ok(lc)); } }