Ejemplo n.º 1
0
        public Invoice GetInvoice()
        {
            if (Invoice.Id > 0)
            {
                return(_invoiceService.GetInvoice(Invoice.Id));
            }
            if (Invoice.ContractorId > 0 && Invoice.SellerId > 0)
            {
                Invoice.Contractor = _customerService.GetCustomer(Invoice.ContractorId);
                Invoice.Seller     = _customerService.GetCustomer(Invoice.SellerId);
            }
            if (Invoice.PaymentTypeId > 0)
            {
                Invoice.PaymentType = _paymentTypeService.GetPaymentType(Invoice.PaymentTypeId);
            }

            return(Invoice);
        }
Ejemplo n.º 2
0
 //GET: PaymentType/Detail/1
 public ActionResult Details(int id)
 {
     return(View(pth.GetPaymentType(id)));
 }