Ejemplo n.º 1
0
        public JsonResult GetSupplierDetails(string name)
        {
            var inwardData   = _inwardFromSupplierService.GetLastInward();
            var supplierlist = _supplierMasterService.GetByName(name);
            var PONoList     = _purchaseOrderDetailService.GetPoNosBySupplier(name);
            var ponos        = PONoList.Select(m => new SelectListItem
            {
                Text  = m.PoNo,
                Value = m.PoNo
            });

            return(Json(new
            {
                supplierlist.SupplierName,
                supplierlist.Address,
                supplierlist.ContactNo1,
                supplierlist.Email,
                supplierlist.district,
                ponos,
            }, JsonRequestBehavior.AllowGet));
        }