public static void PowerboxchargehistoryUpdate(PowerboxchargehistoryInfo powerboxcharge) { PowerboxchargehistoryUpdateRequest powerboxchargehistoryUpdateRequest = new PowerboxchargehistoryUpdateRequest(); powerboxchargehistoryUpdateRequest.PowerboxchargehistoryInfo = powerboxcharge; powerboxchargehistoryService.UpdatePowerboxchargehistory(powerboxchargehistoryUpdateRequest); }
public BasicResponse <PowerboxchargehistoryInfo> UpdatePowerboxchargehistory(PowerboxchargehistoryUpdateRequest powerboxchargehistoryRequest) { var _powerboxchargehistory = ObjectConverter.Copy <PowerboxchargehistoryInfo, PowerboxchargehistoryModel>(powerboxchargehistoryRequest.PowerboxchargehistoryInfo); _Repository.UpdatePowerboxchargehistory(_powerboxchargehistory); var powerboxchargehistoryresponse = new BasicResponse <PowerboxchargehistoryInfo>(); powerboxchargehistoryresponse.Data = ObjectConverter.Copy <PowerboxchargehistoryModel, PowerboxchargehistoryInfo>(_powerboxchargehistory); return(powerboxchargehistoryresponse); }