/// <summary> /// 删除账号信息 /// </summary> /// <param name="id">账号标识</param> /// <returns></returns> public string DelBankAccount(string id) { bool result = new BankAccountSvc().DelBankAccount(id); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }
/// <summary> /// 更新账号信息 /// </summary> /// <param name="bankAccount">账号信息对象</param> /// <returns></returns> public string UpdBankAccount(T_BankAccount bankAccount) { bankAccount.C_GUID = Session["CurrentCompany"].ToString(); bool result = new BankAccountSvc().UpdBankAccount(bankAccount); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }