Exemplo n.º 1
0
 public IList<Roles> FindAllRole()
 {
     string sql = UserStoredProceduresNames.GetAllRole;
     return _sqlServerFindData.FindData<Roles>(sql);
 }
Exemplo n.º 2
0
        public async Task <int> GetHighestAutoId()
        {
            string sql = AutoStoredProceduresNames.QueryForHighestAutoID;

            return(await Task.Run(() => _sqlServerFindData.FindData(sql)));
        }
Exemplo n.º 3
0
        public IList <UserSaleCommissionReport> LoadUserCommissionReport()
        {
            string sql = ReportStoredProceduresNames.GetUserSaleReport;

            return(_sqlServerFindData.FindData <UserSaleCommissionReport>(sql));
        }
Exemplo n.º 4
0
        public async Task <Auto> FindAutoAsync(int id)
        {
            string sql = AutoStoredProceduresNames.GetAutoByID;

            return(await Task.Run(() => _sqlServerFindData?.FindData <Auto>(sql, id).FirstOrDefault()));
        }
Exemplo n.º 5
0
        public async Task <int> GetHighestCustomerId()
        {
            string sql = SaleStoredProcedureNames.GetHighestCustomerID;

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