public Task <PlanModel> GetByUserIdAync(long userId) { return(Queryable.Where(PlanExpression.UserId(userId)).Where(p => p.Status == Status.Active).Select(PlanExpression.Model).SingleOrDefaultAsync()); }
public Task <PlanModel> GetByIdAsync(long id) { return(Queryable.Where(PlanExpression.Id(id)).Select(PlanExpression.Model).SingleOrDefaultAsync()); }