示例#1
0
 public IActionResult Post([FromBody] Transfer transfer)
 {
     if (transfer == null)
     {
         return(BadRequest("Transfer is null"));
     }
     if (transferManager.Add(transfer) == 1)
     {
         return(Ok(true));
     }
     else
     {
         return(BadRequest(false));
     }
 }