// GET: Supplier public ActionResult Index() { List <SupplierDTO> userDTOs = supplierBL.GetAll(); ViewBag.SupplierList = userDTOs; return(View()); }
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>()); } }
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")); }
// GET: api/Proveedores public IEnumerable <Supplier> Get() { return(supplierBL.GetAll()); }