Click here to Skip to main content
16,007,472 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: why we use Interface for developing a consistently changes system? Pin
S. M. Ahasan Habib22-Nov-13 20:42
professionalS. M. Ahasan Habib22-Nov-13 20:42 
AnswerRe: why we use Interface for developing a consistently changes system? Pin
Abhinav S23-Nov-13 0:29
Abhinav S23-Nov-13 0:29 
QuestionMVC5 and View filenames. Pin
Marc Leger21-Nov-13 13:42
Marc Leger21-Nov-13 13:42 
AnswerRe: MVC5 and View filenames. Pin
sudeepvajrala411422-Nov-13 0:24
sudeepvajrala411422-Nov-13 0:24 
QuestionTheming MVC4 Pin
Eddy Vluggen21-Nov-13 4:47
professionalEddy Vluggen21-Nov-13 4:47 
AnswerRe: Theming MVC4 Pin
Abhinav S25-Nov-13 17:00
Abhinav S25-Nov-13 17:00 
GeneralRe: Theming MVC4 Pin
Eddy Vluggen1-Dec-13 21:57
professionalEddy Vluggen1-Dec-13 21:57 
QuestionOpen new Email in Outlook Pin
byka21-Nov-13 3:11
byka21-Nov-13 3:11 
AnswerRe: Open new Email in Outlook Pin
Bernhard Hiller21-Nov-13 3:20
Bernhard Hiller21-Nov-13 3:20 
GeneralRe: Open new Email in Outlook Pin
byka21-Nov-13 3:25
byka21-Nov-13 3:25 
GeneralRe: Open new Email in Outlook Pin
Richard Deeming21-Nov-13 4:00
mveRichard Deeming21-Nov-13 4:00 
GeneralRe: Open new Email in Outlook Pin
byka21-Nov-13 4:39
byka21-Nov-13 4:39 
GeneralRe: Open new Email in Outlook Pin
Richard Deeming21-Nov-13 5:39
mveRichard Deeming21-Nov-13 5:39 
QuestionSOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
kirthikirthi20-Nov-13 20:40
kirthikirthi20-Nov-13 20:40 
GeneralRe: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Pin
Richard MacCutchan20-Nov-13 22:40
mveRichard MacCutchan20-Nov-13 22:40 
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 

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.