public IActionResult GetOtherItem([FromBody] AutoCus tag)
        {
            var orgId = getOrg();

            var otherItem = _context.OtherItems.Where(x => x.OrganisationId == orgId).Where(x => x.Item == tag.Name).FirstOrDefault();

            return(Json(otherItem));
        }
        public IActionResult GetProduct([FromBody] AutoCus tag)
        {
            var orgId = getOrg();

            var produc = _context.StockRecords.Where(x => x.OrganisationId == orgId).Where(x => x.ProductService.ProductServiceName == tag.Name).Include(x => x.ProductService).FirstOrDefault();

            return(Json(produc));
        }
        public IActionResult GetCustomer([FromBody] AutoCus tag)
        {
            var orgId = getOrg();

            var customer = _context.Customers.Where(x => x.OrganisationId == orgId).Where(x => x.CustomerName == tag.Name).FirstOrDefault();

            if (customer != null)
            {
                var quoterec = _context.InvoiceRecords.Where(x => x.Id == tag.QuoteId).FirstOrDefault();

                quoterec.CustomerId = customer.Id;

                //quoterec.QuoteNo = 0;

                _context.Update(quoterec);
                _context.SaveChanges();
            }

            return(Json(customer));
        }