public HttpResponseMessage Post([FromBody] MainBoardGame value) { if (value.Date == DateTime.MinValue) { value.Date = Function.GetTime(); } ; var response = (int)DapperHelper.InsertSQL <MainBoardGame>(connectionString, TableName, value); value.SeqNo = response; return(Request.CreateResponse(HttpStatusCode.OK, value)); }
public HttpResponseMessage Put([FromBody] MainBoardGame value) { var response = DapperHelper.UpdateSQL <MainBoardGame>(connectionString, TableName, value); return(Request.CreateResponse(HttpStatusCode.OK, response)); }
public HttpResponseMessage Delete([FromBody] MainBoardGame value) { var response = DapperHelper.DeleteSQL(connectionString, TableName, value.SeqNo); return(Request.CreateResponse(HttpStatusCode.OK, response)); }