public string[] GetRole(string username)
        {
            var data = _idataaccessdal.GetFilter(x => x.user.First_Name == username).ToList();

            string[] result = new string[data.Count];
            int      i      = 0;
            string   s      = string.Empty;

            foreach (var item in data)
            {
                s         = item.role.Role_Name.ToString();
                result[i] = s;
                i++;
            }

            return(result);
        }
Example #2
0
 public IEnumerable <discountcart> GetFilter(Expression <Func <discountcart, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #3
0
 public IEnumerable <payment_plan> GetFilter(Expression <Func <payment_plan, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <userproduct> GetFilter(Expression <Func <userproduct, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #5
0
 public IEnumerable <Tax_Administration> GetFilter(Expression <Func <Tax_Administration, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #6
0
 public IEnumerable <FuelType> GetFilter(Expression <Func <FuelType, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #7
0
 public IEnumerable <submit> GetFilter(Expression <Func <submit, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #8
0
 public IEnumerable <auction> GetFilter(Expression <Func <auction, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #9
0
 public IEnumerable <CarHardwareDetail> GetFilter(Expression <Func <CarHardwareDetail, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #10
0
 public IEnumerable <AMOUNT_OF_INCREASE> GetFilter(Expression <Func <AMOUNT_OF_INCREASE, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #11
0
 public IEnumerable <PRICEBOT> GetFilter(Expression <Func <PRICEBOT, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <GeneralDesign> GetFilter(Expression <Func <GeneralDesign, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #13
0
 public IEnumerable <CarBrand> GetFilter(Expression <Func <CarBrand, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #14
0
 public IEnumerable <medium> GetFilter(Expression <Func <medium, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #15
0
 public IEnumerable<county> GetFilter(Expression<Func<county, bool>> expression)
 {
     return _dataAccessDal.GetFilter(expression);
 }
 public IEnumerable <company> GetFilter(Expression <Func <company, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <CURRENCY> GetFilter(Expression <Func <CURRENCY, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <UserRole> GetFilter(Expression <Func <UserRole, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <user> GetFilter(Expression <Func <user, bool> > expression)
 {
     return(_idataaccessdal.GetFilter(expression));
 }
 public IEnumerable <E_INVOICE> GetFilter(Expression <Func <E_INVOICE, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #21
0
 public IEnumerable <SOLD_PRODUCT> GetFilter(Expression <Func <SOLD_PRODUCT, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
 public IEnumerable <employee> GetFilter(Expression <Func <employee, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #23
0
 public IEnumerable <Menu> GetFilter(Expression <Func <Menu, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #24
0
 public IEnumerable <RoleClaim> GetFilter(Expression <Func <RoleClaim, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #25
0
 public IEnumerable <SocialMedya> GetFilter(Expression <Func <SocialMedya, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }
Example #26
0
 public IEnumerable <odeme_yontemi> GetFilter(Expression <Func <odeme_yontemi, bool> > expression)
 {
     return(_dataAccessDal.GetFilter(expression));
 }