public HttpResponseMessage GetDomesticInvoiceDetails(string userId, string Id)
 {
     using (var domesticInvoiceMgr = new DomesticInvoiceManager())
     {
         var result = domesticInvoiceMgr.GetDomesticInvoiceDetails(Id, userId, Language);
         return(OkResponse <DomesticInvoice>(result));
     }
 }
        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));
        }
        public HttpResponseMessage Get(string id)
        {
            var result = Manager.GetDomesticInvoiceDetails(id, Language);

            return(OkResponse(result));
        }