public ResponseModel AddAddressModel(ReceiveingAddressAdd entity) { //1.添加支出数据 var result = _receiveAddressAdd.Insert(entity); //2.返回新增的支出实体 return(new ResponseModel { Code = result ? (int)ErrorCodeEnum.Success : (int)ErrorCodeEnum.ExpenseFailed, Data = entity }); }
public ResponseModel AddMobileAddressModel(ReceiveingAddressAdd entity) { entity.CreateTime = DateTime.Now; entity.AccId = GetUserContext().AccId; return(_onlineMallService.AddAddressModel(entity)); }