public virtual ActionResult Edit(ContraViewModel vm) { return(ThrowIfNotLoggedIn(() => TryExecute(() => { var dateOfTransfer = DateTime.ParseExact(vm.DateOfTransfer, "dd/MM/yyyy", CultureInfo.InvariantCulture); var contra = _contraService.UpdateAccount(dateOfTransfer, vm.Reference, vm.Description, long.Parse(vm.SelectedFromAccount), long.Parse(vm.SelectedToAccount), vm.Amount, EntryType.BankCashTransfer, WebUser.TenantId, vm.Id); return contra; }))); }
public IActionResult Contra(ContraViewModel contraViewModel) { return(View()); }