/// <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); }
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); }