/// <summary> /// 添加账户异动类型 /// </summary> /// <param name="model">退换用户余额信息表</param> /// <returns>是否成功</returns> public ResultModel AddZJ_AmountChangeType(ZJ_AmountChangeTypeModel model) { var result = new ResultModel { Data = _database.Db.ZJ_AmountChangeType.Insert(model) }; return(result); }
/// <summary> /// 更新账户异动类型 /// </summary> /// <param name="model">用户余额信息表模型</param> /// <returns>是否修改成功</returns> public ResultModel UpdateZJ_AmountChangeType(ZJ_AmountChangeTypeModel model) { var result = new ResultModel() { Data = base._database.Db.ZJ_UserBalance.UpdateByID(ID: model.ID, Remark: model.Remark, TypeName: model.TypeName) }; result.IsValid = result.Data > 0 ? true : false; return(result); }
public static ZJ_AmountChangeType ToEntity(this ZJ_AmountChangeTypeModel model) { return(Mapper.Map <ZJ_AmountChangeType>(model)); }