// GET: Supplier
        public ActionResult Index()
        {
            List <SupplierDTO> userDTOs = supplierBL.GetAll();

            ViewBag.SupplierList = userDTOs;
            return(View());
        }
Beispiel #2
0
        public static List <SupplierInfo> Get_All_Supplier()
        {
            List <SupplierInfo> list = new List <SupplierInfo>();

            try
            {
                SupplierBL _BL = new SupplierBL();
                list = _BL.GetAll();
                return(list);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(new List <SupplierInfo>());
            }
        }
Beispiel #3
0
        public ActionResult Contract_Insert()
        {
            var supplyBl = new SupplierBL();
            List <SupplierInfo> lstSuppliers = new List <SupplierInfo>();

            try
            {
                lstSuppliers          = supplyBl.GetAll();
                ViewBag.ListSuppliers = lstSuppliers;
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
            }
            return(View("~/Areas/ModuleImport/Views/Contract/Contract_Insert.cshtml"));
        }
Beispiel #4
0
 // GET: api/Proveedores
 public IEnumerable <Supplier> Get()
 {
     return(supplierBL.GetAll());
 }