Ejemplo n.º 1
0
        private int getNewUserRoleMappingId()
        {
            int userRoleMappingId = _userRoleMappingRepository.GetAll().Count() > 0 ? _userRoleMappingRepository.GetAll().Max(u => u.UserRoleMappingID) + 1 : 1;

            return(userRoleMappingId);
        }
Ejemplo n.º 2
0
 public IQueryable <UserRoleMapping> GetAll()
 {
     return(userRoleMappingRepository.GetAll().Where(x => x.IsActive == true));
 }