Exemplo n.º 1
0
 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));
        }
Exemplo n.º 3
0
 public void Add(TransferLog transferLog)
 {
     _ctx.Add(transferLog);
     _ctx.SaveChanges();
 }
 public void Add(TransferLog transferLog)
 {
     _dbContext.Add(transferLog);
     _dbContext.SaveChanges();
 }
Exemplo n.º 5
0
 public void Add(TransferLog transferLog)
 {
     _ctx.Add(transferLog);
 }
Exemplo n.º 6
0
 public void Add <T>(T entity) where T : class
 {
     _ctx.Add(entity);
 }
 public TransferLog Post(TransferLog transfer)
 {
     _context.Add(transfer);
     _context.SaveChanges();
     return(transfer);
 }
Exemplo n.º 8
0
 public void Add(TransferLog transferLog)
 {
     _tdc.Add(transferLog);
     _tdc.SaveChanges();
 }
Exemplo n.º 9
0
 public void Add(TransferLog transferLog)
 {
     _context.Add <TransferLog>(transferLog);
     _context.SaveChanges();
 }
Exemplo n.º 10
0
 public void TransferInsertEmployee(Employee employee)
 {
     _context.Add(employee);
     _context.SaveChanges();
 }
Exemplo n.º 11
0
 public void Add(TransferLog transferLog)
 {
     _context.Add(transferLog);
 }