TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vibha Grover
NA
2
2k
ANgularJS Grid diplay based on RoleID
Jun 23 2014 9:59 PM
Hi ,
My Grid is displaying all the data from view created on DB using below code.
[Queryable]
public IQueryable<mydata> Get()
{
return mda.GetAll();
}
public interface IGenericRepository<T, TEntity> : IDisposable
{
IQueryable<T> GetAll(string[] includes = null);
}
public virtual IQueryable<T> GetAll(string[] includes = null)
{
if (includes != null && includes.Count() > 0)
{
var query = _context.Set<TEntity>().Include(includes.First());
foreach (var include in includes.Skip(1))
query = query.Include(include);
return query.Project().To<T>();
}
return _context.Set<TEntity>().Project().To<T>();
}
Now I just want to display all the records based on Role ID as the person who has logged in my site his role should be assigner and all assigned items to him would be displayed. In my view AssignerId is displayed. I am not aware where to put where condition in this case.
I am using AngularJS, MVC5.0, Entity Framework. Please advice me asap.
Thanks & Regards,
Care Career
Reply
Answers (
1
)
Reading pdf book online with page no results in reloading
AngularJs Search + MVC5.0 . Entity framework