Example #1
0
        public ActionResult ActivateCard([FromBody] Dictionary <string, string> body)
        {
            var response = cardSvc.ActivateCard(body["cardNumber"].ToString());

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                return(Ok(response));
            }
            else
            {
                return(BadRequest(response));
            }
        }