/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, ResourcesEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
private ResourcesEntity GetResourceChangeForPeriod(int secondsInPeriod, BuildItemStatistics basePointStats) { var mineralsPerMinute = this.GetMineralsPerMinute(basePointStats); var gasPerMinute = this.GetGasPerMinute(basePointStats); var incomeInfo = new ResourcesEntity { Minerals = this.GetAdjustedWithMilliResourcePerPeriod(mineralsPerMinute, secondsInPeriod, Consts.CoreStatistics.MilliMinerals, basePointStats), Gas = this.GetAdjustedWithMilliResourcePerPeriod(gasPerMinute, secondsInPeriod, Consts.CoreStatistics.MilliGas, basePointStats) }; return(incomeInfo); }
public ActionResult SaveForm(string keyValue, ResourcesEntity entity) { resourcesbll.SaveForm(keyValue, entity); return(Success("操作成功。")); }