コード例 #1
0
 public IHttpActionResult Get()
 {
     var totalNumberOfReceipts = _receiptBll.GetReceiptTotal();
     var totals = new ReceiptTotals { TotalNumberOfReceipts = totalNumberOfReceipts };
     return Ok(totals);
 }
 public IHttpActionResult Get(string searchTerm)
 {
     var totalNumberOfComments = _receiptBll.GetTotalNumberOfComments(searchTerm);
     var total = new ReceiptTotals { TotalNumberOfComments = totalNumberOfComments };
     return Ok(total);
 }