public HttpResponseMessage DeleteSalesCardOrderList([FromBody] CC_Order order) { try { var db = new RedisOperation(_RedisDB); var key = RedisKeys.CCSalesCardOrder(order.CustomerID); db.Delete(key); return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Success, Message = "success" })); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Fail, Message = "fail:" + ex.Message })); } }
public HttpResponseMessage DeleteContactList([FromBody] CC_Contact Contact) { try { var db = new RedisOperation(_RedisDB); var key = RedisKeys.CCContactKey(Contact.CustomerId); db.Delete(key); return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Success, Message = "success" })); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Fail, Message = "fail:" + ex.Message })); } }
public HttpResponseMessage DeletePrizePoolsList([FromBody] CC_PrizePool prizePoolData) { try { var db = new RedisOperation(_RedisDB); var key = RedisKeys.CCPrizePoolsKey(prizePoolData.CustomerId, prizePoolData.EventId); var result = db.Delete(key); return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Success, Message = "success" })); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.OK, new ResponseModel { Code = ResponseCode.Fail, Message = "fail:" + ex.Message })); } }