public IActionResult Edit(string id, NetPresentValueTransaction newNetPresentValue)
        {
            var netPresentValue = _netPresentValueService.Get(id);

            if (netPresentValue == null)
            {
                return(NotFound());
            }

            _netPresentValueService.Update(id, newNetPresentValue);

            return(Ok());
        }
Esempio n. 2
0
 public void Update(string id, NetPresentValueTransaction netPresentValue) =>
 _netPresentValueTransaction.ReplaceOne(nvp => nvp.Id == id, netPresentValue);
 public string Create(NetPresentValueTransaction netPresentValue)
 {
     _netPresentValueService.Create(netPresentValue);
     return(SerializerPrettyPrint(netPresentValue));
 }
Esempio n. 4
0
 public NetPresentValueTransaction Create(NetPresentValueTransaction netPresentValue)
 {
     _netPresentValueTransaction.InsertOne(netPresentValue);
     return(netPresentValue);
 }