public ActionResult GetPointExchange(int id) { Point_Exchange pointExchange = _pointManager.GetPointExchange(id); if (pointExchange == null) { return(FailedResult("指定的数据不存在。")); } Point_ExchangeDto memberDto = Mapper.Map <Point_ExchangeDto>(pointExchange); return(DataResult(memberDto)); }
public ActionResult UpdatePointExchange() { Point_ExchangeDto args = RequestArgs <Point_ExchangeDto>(); if (args == null) { return(FailedResult("参数无效。")); } Point_Exchange pointExchange = Mapper.Map <Point_Exchange>(args); NormalResult result = _pointManager.UpdatePointExchange(pointExchange); return(ApiResult(result.Successful, result.Message)); }