コード例 #1
0
 public HttpResponseMessage GetDomesticInvoiceDetails(string userId, string Id)
 {
     using (var domesticInvoiceMgr = new DomesticInvoiceManager())
     {
         var result = domesticInvoiceMgr.GetDomesticInvoiceDetails(Id, userId, Language);
         return(OkResponse <DomesticInvoice>(result));
     }
 }
コード例 #2
0
        public async Task <ActionResult> DomesticInvoice(string id)
        {
            DomesticInvoiceManager Mgr;
            ApplicationUser        u = UserManager.FindById(User.Identity.GetUserId());

            Mgr = new DomesticInvoiceManager(Lang, u);
            DomesticInvoice invoice = await Mgr.GetDomesticInvoiceDetails(id);

            if (invoice == null)
            {
                return(HttpNotFound());
            }

            return(View(invoice));
        }
コード例 #3
0
        public HttpResponseMessage Get(string id)
        {
            var result = Manager.GetDomesticInvoiceDetails(id, Language);

            return(OkResponse(result));
        }