public async Task <ActionResult <TransactionTypeModel> > GetTransactionType(long id) { var model = await _transactionTypeService.GetById(id); if (model == null) { return(NotFound()); } return(model); }
public IHttpActionResult GetById(long id) { var vendor = _transactionTypeService.GetById(id); if (vendor == null) { return(Content(HttpStatusCode.NotFound, $"Vendor ID [{id}] not found.")); } return(Ok(vendor)); }