Hi trying here to have multiple diff Get() requests in my API, but I am getting an error
already defines a member called 'Get' with the same parameter types
How should I change this so that I can all of my Get statements
public IEnumerable<appinfo> Get()
{
using (XamarinEntities entities = new XamarinEntities())
return entities.appinfoes.ToList();
}
public IEnumerable<string> Get()
{
return new string[] { "id", "fname", "lname", "phone", "company", "approveduser" };
}
public appinfo Get(string email)
{
using (XamarinEntities entities = new XamarinEntities())
return entities.appinfoes.FirstOrDefault(e => e.email == email);
}