public PartialViewResult GetItems(int id)
        {
            HeaderDetailInformationBussines    objHeaderDetailInformationBussines = new HeaderDetailInformationBussines();
            List <TransactionInboxDetailsItem> transactionInboxDetails            = new List <TransactionInboxDetailsItem>();

            transactionInboxDetails = objHeaderDetailInformationBussines.transactionInboxDetailsGetItems(id);
            return(PartialView("~/Views/C850_Header/TransactionInboxItems.cshtml", transactionInboxDetails));
        }
        public PartialViewResult Tamplate(string id)
        {
            List <Templates> templates = new List <Templates>();
            HeaderDetailInformationBussines _HeaderDetailInformation = new HeaderDetailInformationBussines();

            templates = _HeaderDetailInformation.GETtempaltes(id);
            return(PartialView("~/Views/TradingPartnerDetails/Tamplate.cshtml", templates));
        }
        public ActionResult getOutboxItems(GridParams g, string search)
        {
            HeaderDetailInformationBussines objHeaderDetailInformationBussines = new HeaderDetailInformationBussines();

            search = (search ?? "").ToLower();
            var items = objHeaderDetailInformationBussines.getOutboxItems().AsQueryable();

            return(Json(new GridModelBuilder <HeaderDetailInformation>(items, g)
            {
                Key = "Id",
                Map = MapToGridModelOutbox
            }.Build()));
        }
        //public ActionResult GridGetItems(GridParams g, string search)
        //{
        //    search = (search ?? "").ToLower();
        //    var items = Db.Dinners.Where(o => o.Name.ToLower().Contains(search)).AsQueryable();

        //    return Json(new GridModelBuilder<Dinner>(items, g)
        //    {
        //        Key = "Id", // needed for api select, update, tree, nesting, EF
        //        GetItem = () => Db.Get<Dinner>(Convert.ToInt32(g.Key)), // called by the grid.api.update ( edit popupform success js func )
        //        Map = MapToGridModel
        //    }.Build());
        //}

        //public ActionResult GridGetItems(GridParams g, string search)
        //{
        //    search = (search ?? "").ToLower();
        //    HeaderDetailInformationBussines objHeaderDetailInformationBussines = new HeaderDetailInformationBussines();
        //   // var items = Db.Dinners.Where(o => o.Name.ToLower().Contains(search)).AsQueryable();
        //    var items=objHeaderDetailInformationBussines.GetInboxDetails().AsQueryable();
        //    return Json(new GridModelBuilder<Header_Details_Information>(items, g)
        //    {
        //        Key = "Id", // needed for api select, update, tree, nesting, EF
        //        GetItem = () => Db.Get<Dinner>(Convert.ToInt32(g.Key)), // called by the grid.api.update ( edit popupform success js func )
        //        GetItem = () => Db.Get<Header_Details_Information>(Convert.ToInt32(g.Key)), // called by the grid.api.update ( edit popupform success js func )
        //        Map = MapToGridModel
        //    }.Build());
        //}


        public ActionResult GridGetItems(GridParams g, string search)
        {
            HeaderDetailInformationBussines objHeaderDetailInformationBussines = new HeaderDetailInformationBussines();

            search = (search ?? "").ToLower();
            //  var items1 = Db.Dinners.Where(o => o.Name.ToLower().Contains(search)).AsQueryable();
            var items = objHeaderDetailInformationBussines.GetInboxDetails().AsQueryable();

            return(Json(new GridModelBuilder <HeaderDetailInformation>(items, g)
            {
                Key = "Id", // needed for api select, update, tree, nesting, EF
                // GetItem = () => Db.Get<HeaderDetailInformation>(Convert.ToInt32(g.Key)), // called by the grid.api.update ( edit popupform success js func )
                Map = MapToGridModel
            }.Build()));
        }
        // GET: C850_Header/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HeaderDetailInformationBussines objHeaderDetailInformationBussines = new HeaderDetailInformationBussines();
            TransactionInboxDetails         transactionInboxDetails            = new TransactionInboxDetails();

            transactionInboxDetails = objHeaderDetailInformationBussines.transactionInboxDetails(id);
            C850_Header c850_Header = db.C850_Header.Find(id);

            if (transactionInboxDetails == null)
            {
                return(HttpNotFound());
            }
            return(View(transactionInboxDetails));
        }