public void SaveTransferLog(TransferLog transferLog) { if (transferLog != null) { _ctx.Add(transferLog); _ctx.SaveChanges(); } }
public async Task <IActionResult> Create([Bind("TransferID,AccountNumberFrom,AccountNumberTo,NameSurname,Street,City,PostalCode,Amount,Title,ExecutionDate")] Transfer transfer) { if (ModelState.IsValid) { _context.Add(transfer); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(transfer)); }
public void Add(TransferLog transferLog) { _ctx.Add(transferLog); _ctx.SaveChanges(); }
public void Add(TransferLog transferLog) { _dbContext.Add(transferLog); _dbContext.SaveChanges(); }
public void Add(TransferLog transferLog) { _ctx.Add(transferLog); }
public void Add <T>(T entity) where T : class { _ctx.Add(entity); }
public TransferLog Post(TransferLog transfer) { _context.Add(transfer); _context.SaveChanges(); return(transfer); }
public void Add(TransferLog transferLog) { _tdc.Add(transferLog); _tdc.SaveChanges(); }
public void Add(TransferLog transferLog) { _context.Add <TransferLog>(transferLog); _context.SaveChanges(); }
public void TransferInsertEmployee(Employee employee) { _context.Add(employee); _context.SaveChanges(); }
public void Add(TransferLog transferLog) { _context.Add(transferLog); }