Example #1
0
        /// <summary>
        /// Gets all customers.
        /// </summary>
        /// <returns>Get All Customers</returns>
        public IEnumerable <SupplierDetailEntity> GetAllSupplier()
        {
            ISupplierBL _supplierBL = new SupplierBL();

            IList <SupplierDetailEntity> SupplierList = new List <SupplierDetailEntity>();


            SupplierList = _supplierBL.GetAllSupplier();
            return(SupplierList);
        }
Example #2
0
        public AjaxResult Get()
        {
            var ajaxresult = new AjaxResult();

            try
            {
                using (SupplierBL supplierBL = new SupplierBL()) {
                    ajaxresult.Data    = supplierBL.GetAllSupplier();
                    ajaxresult.Success = true;
                }
            }
            catch (Exception ex)
            {
                ajaxresult.Success = false;
                ajaxresult.Data    = ex;
                ajaxresult.Message = Resources.ErrorGetSupplier;
            }
            return(ajaxresult);
        }