Click here to Skip to main content
15,887,349 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
kirthikirthi20-Nov-13 22:45
kirthikirthi20-Nov-13 22:45 
GeneralRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
Richard MacCutchan20-Nov-13 23:39
mveRichard MacCutchan20-Nov-13 23:39 
AnswerRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
SnehasishN20-Nov-13 22:42
professionalSnehasishN20-Nov-13 22:42 
GeneralRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
kirthikirthi20-Nov-13 22:46
kirthikirthi20-Nov-13 22:46 
Questionasp.net Pin
Member 1026351919-Nov-13 21:14
Member 1026351919-Nov-13 21:14 
AnswerRe: asp.net Pin
Mycroft Holmes19-Nov-13 21:32
professionalMycroft Holmes19-Nov-13 21:32 
QuestionRe: asp.net Pin
Richard MacCutchan19-Nov-13 21:55
mveRichard MacCutchan19-Nov-13 21:55 
QuestionFromUri Method - API Pin
miss78619-Nov-13 0:38
miss78619-Nov-13 0:38 
Dear all,

I am trying to implement the following method below and I keep experiencing compiler error or "does not contain a definition for 'Where'".

I am already using the library "system.Linq" but I keep getting the same error.

C#
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;


namespace API_10Oct.Controllers
{
    public class ItemsController : ApiController
    {
        private TestEntities1 db = new TestEntities1();

        // GET api/Default1
        public IEnumerable<Intex> GetIntexes()
        {
            return db.Intexes.AsEnumerable();
        }

        public IEnumerable<Intex> Get([FromUri]Intex intex)
        {
            return Intex.Where(w => w.Contains(intex.Name));
                
        }
}
}


C#
namespace API_10Oct
{
    using System;
    using System.Collections.Generic;
    
    public partial class Intex
    {
        public string ID { get; set; }
        public string Name { get; set; }
        public string Price { get; set; }
        public string Type { get; set; }
        public string UploadDate { get; set; }
    }
}


Any guidance or help would be very much appreciated.

Many thanks for your time and help.
AnswerRe: FromUri Method - API Pin
Richard Deeming19-Nov-13 2:12
mveRichard Deeming19-Nov-13 2:12 
GeneralRe: FromUri Method - API Pin
miss7865-Dec-13 23:55
miss7865-Dec-13 23:55 
GeneralRe: FromUri Method - API Pin
Richard Deeming6-Dec-13 1:33
mveRichard Deeming6-Dec-13 1:33 
QuestionSuggest me a website in asp dotnet Pin
Member 1041107418-Nov-13 23:15
Member 1041107418-Nov-13 23:15 
AnswerRe: Suggest me a websit in asp dotnet Pin
Chris Quinn18-Nov-13 23:22
Chris Quinn18-Nov-13 23:22 
AnswerRe: Suggest me a website in asp dotnet Pin
Dineshshp18-Nov-13 23:39
professionalDineshshp18-Nov-13 23:39 
AnswerRe: Suggest me a website in asp dotnet Pin
Chris Quinn19-Nov-13 0:42
Chris Quinn19-Nov-13 0:42 
AnswerRe: Suggest me a website in asp dotnet Pin
thatraja19-Nov-13 1:09
professionalthatraja19-Nov-13 1:09 
AnswerRe: Suggest me a website in asp dotnet Pin
Abhinav S19-Nov-13 16:56
Abhinav S19-Nov-13 16:56 
QuestionDropdown list based on another dropdown list. Pin
Member 1040983818-Nov-13 10:20
Member 1040983818-Nov-13 10:20 
AnswerRe: Dropdown list based on another dropdown list. Pin
Richard Deeming19-Nov-13 2:07
mveRichard Deeming19-Nov-13 2:07 
QuestionASP.NET QUESTION PERSONAL PROJECT Pin
cserakeshcseranjan18-Nov-13 4:30
cserakeshcseranjan18-Nov-13 4:30 
AnswerRe: ASP.NET QUESTION PERSONAL PROJECT Pin
Joshua Omundson18-Nov-13 4:58
Joshua Omundson18-Nov-13 4:58 
AnswerRe: ASP.NET QUESTION PERSONAL PROJECT Pin
thatraja18-Nov-13 4:59
professionalthatraja18-Nov-13 4:59 
QuestionHow does IIS recognize that request is for MVC Controllers or webforms Pages? Pin
sanjay24365718-Nov-13 4:08
sanjay24365718-Nov-13 4:08 
QuestionJanus GridEx + asp.net Pin
jojoba201118-Nov-13 4:00
jojoba201118-Nov-13 4:00 
QuestionRe: Janus GridEx + asp.net Pin
thatraja18-Nov-13 4:32
professionalthatraja18-Nov-13 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.