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