I am getting the error
this operation is not supported in the wcf test client because it uses type catNameService.catNames[]
Class and IClass code:
catService class:
namespace catNameService
{
class catService:IcatService
{
public IEnumerable<catNames> sortBySex(int genderNumber)
{
using (var context = new catNamingEntities())
{
return context.catNames.Where(t => t.Gender == genderNumber).ToList();
}
}
}
}
IcatService interface:
namespace catNameService
{
[ServiceContract]
public interface IcatService
{
[OperationContract]
IEnumerable<catNames> sortBySex(int genderNumber);
}
}