예제 #1
0
        public JsonResult GetByOrdinal(int id)
        {
            var invoiceDetail = _invoiceDetailService.FindByOrdinal(id);
            if (invoiceDetail == null)
            {
                return ErrorResponse("Not found");
            }

            return SingleResult(InvoiceDetailViewModelHelper.ConvertToViewModel(invoiceDetail));
        }