public HttpResponseMessage CheckData([FromBody] BingoChkDTO inputData) { BingoResultsDTO resultDto = null; try { bal = new BAL.BingGoBAL(); resultDto = bal.IsPingGO(inputData); mapMessage = Request.CreateResponse(HttpStatusCode.OK, resultDto); } catch (Exception ex) { mapMessage = Request.CreateResponse(HttpStatusCode.BadRequest, ex.ToString()); } return(mapMessage); }
public HttpResponseMessage GetAll() { List <BingoDTO> list = null; try { bal = new BAL.BingGoBAL(); // list = bal.GetDataNormal(25); list = bal.GetData(25); mapMessage = Request.CreateResponse(HttpStatusCode.OK, list); } catch (Exception ex) { mapMessage = Request.CreateResponse(HttpStatusCode.BadRequest, ex.ToString()); } return(mapMessage); }