Ejemplo n.º 1
0
 public ActionResult <bool> Post([FromBody] Investment investment)
 {
     if (DAInvestment.Insert(investment, out error))
     {
         return(new CreatedAtRouteResult(null, null, true));
     }
     return(BadRequest(error));
 }
Ejemplo n.º 2
0
 public bool Investment_Save(Investment investment, out LogError logError)
 {
     try
     {
         return(DAInvestment.Insert(investment, out logError));
     }
     catch (Exception)
     { throw; }
 }