public HttpResponseMessage UpdateInformation_Agency(PayloadApi p) { LogClass.SaveCustomerLog("UpdateInformation_Agency: " + JsonConvert.SerializeObject(p)); ResultApi result = new ResultApi(); try { var publisherInfo = publisher.CheckPublickey(p, version); if (publisherInfo.status == (int)ERROR_CODDE.SUCCESS) { ManagerModel managerModel = new ManagerModel(); var data = JsonConvert.DeserializeObject <UpdateInformationAgencyEntity>(publisherInfo.data.ToString()); string msg = ""; result.status = managerModel.AgencyModel.UpdateInformation_Agency(data, ref msg); result.msg = msg; } else { result = publisherInfo; } } catch (Exception ex) { LogClass.SaveError("ERROR UpdateInformation_Agency: " + ex.Message, ex, true); result.status = (int)ERROR_CODDE.ERROR_EX; result.msg = ex.Message; } return(Request.CreateResponse(result)); }
public HttpResponseMessage DeductGoldUser(PayloadApi p) { LogClass.SaveCustomerLog("DeductGoldUser: "******""; result.status = managerModel.GameAcountModel.DEDUCT_MONEY_USER(data, ref msg); result.msg = msg; } else { result = publisherInfo; } } catch (Exception ex) { LogClass.SaveError("ERROR DeductGoldUser: " + ex.Message, ex, true); result.status = (int)ERROR_CODDE.ERROR_EX; result.msg = ex.Message; } return(Request.CreateResponse(result)); }