public IActionResult Edit(string id, NetPresentValueTransaction newNetPresentValue) { var netPresentValue = _netPresentValueService.Get(id); if (netPresentValue == null) { return(NotFound()); } _netPresentValueService.Update(id, newNetPresentValue); return(Ok()); }
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)); }
public NetPresentValueTransaction Create(NetPresentValueTransaction netPresentValue) { _netPresentValueTransaction.InsertOne(netPresentValue); return(netPresentValue); }