Exemplo n.º 1
0
        public MarketTransactionModel UpdateMarketTransaction(MarketTransactionModel model)
        {
            var entity = _mapper.Map <MarketTransaction>(model);

            _context.MarketTransaction.Update(entity);

            _context.SaveChanges();

            return(_mapper.Map <MarketTransactionModel>(entity));
        }
Exemplo n.º 2
0
 public MarketTransactionModel UpdateMarketTransaction(MarketTransactionModel model)
 {
     return(_repo.UpdateMarketTransaction(model));
 }
Exemplo n.º 3
0
        public IActionResult UpdateMarketTransaction([FromBody] MarketTransactionModel model)
        {
            var transaction = _service.UpdateMarketTransaction(model);

            return(Ok(transaction));
        }
Exemplo n.º 4
0
 public MarketTransactionModel AddMarketTransaction(MarketTransactionModel model)
 {
     return(_repo.AddMarketTransaction(model));
 }