Пример #1
0
 public IList<Roles> FindAllRole()
 {
     string sql = UserStoredProceduresNames.GetAllRole;
     return _sqlServerFindData.FindData<Roles>(sql);
 }
Пример #2
0
        public async Task <int> GetHighestAutoId()
        {
            string sql = AutoStoredProceduresNames.QueryForHighestAutoID;

            return(await Task.Run(() => _sqlServerFindData.FindData(sql)));
        }
Пример #3
0
        public IList <UserSaleCommissionReport> LoadUserCommissionReport()
        {
            string sql = ReportStoredProceduresNames.GetUserSaleReport;

            return(_sqlServerFindData.FindData <UserSaleCommissionReport>(sql));
        }
Пример #4
0
        public async Task <Auto> FindAutoAsync(int id)
        {
            string sql = AutoStoredProceduresNames.GetAutoByID;

            return(await Task.Run(() => _sqlServerFindData?.FindData <Auto>(sql, id).FirstOrDefault()));
        }
Пример #5
0
        public async Task <int> GetHighestCustomerId()
        {
            string sql = SaleStoredProcedureNames.GetHighestCustomerID;

            return(await Task.Run(() => _sqlServerFindData.FindData(sql)));
        }