public HttpResponseMessage AuthenticateUser([FromBody] dynamic model) { try { HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, "value"); response.Content = new StringContent(_impl.AuthenticateUser((string)model.userName, (string)model.password, (string)model.userData), Encoding.ASCII); return(response); } catch (Exception ex) { throw Error(ex, false); } }