示例#1
0
 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;
     })));
 }
示例#2
0
        public async Task <string> Update(AccountHeadDto dto)
        {
            if (!menu.ModifyAccess)
            {
                return(null);
            }

            return(await _accountHeadService.Update(dto));
        }