This question is locked. New answers and comments are not allowed.
I am using GenericRepository with this code ...
And I want use this function in my Controller ...
And in my debug window appears...
And it should be...
How I can fix this?
Thanks.
public virtual IEnumerable<TEntity> Get( Expression<Func<TEntity, bool>> filter = null, Func<IQueryable<TEntity>, IOrderedQueryable<TEntity>> orderBy = null, string includeProperties = ""){ IQueryable<TEntity> query = dbSet; if (filter != null) { query = query.Where(filter); } query = includeProperties.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries).Aggregate(query, (current, includeProperty) => current.Include(includeProperty)); return orderBy != null ? orderBy(query).ToList() : query.ToList();}And I want use this function in my Controller ...
public ActionResult Hojas_Read([DataSourceRequest] DataSourceRequest request){ var usuario = _utHojas.UsuariosRepository.Get(u => u.Correo == User.Identity.Name).FirstOrDefault(); .....}And in my debug window appears...
{u => (u.Correo == value(TaxiMetro.Web.Controllers.HojasController).User.Identity.Name)}And it should be...
{u => (u.Correo == "jsanchco@gmail.com"}How I can fix this?
Thanks.