public virtual ActionResult Edit(AccountHeadViewModel vm) { return(ThrowIfNotLoggedIn(() => TryExecute(() => { var accountHead = _accountHeadService.Update(vm.Name, vm.SelectedAccountHeadId, vm.Description, vm.OpeningBalance, vm.IsTransaction, WebUser.Id, vm.Id); return accountHead; }))); }
public async Task <string> Update(AccountHeadDto dto) { if (!menu.ModifyAccess) { return(null); } return(await _accountHeadService.Update(dto)); }