Hello Experts,
I have this function , it is returning ApplicationUser (Microsoft.AspNet.Identity)
public ApplicationUser GetUser(string userName)
{
var user = userManager.FindByName(userName);
if (user != null)
{
return user;
}
else
{ throw new ArgumentException("User not found."); }
}
i have a asmx web service that calls above function:
[WebMethod]
[SoapHeader("SoapCredentials", Direction = SoapHeaderDirection.InOut)]
public ApplicationUser GetUser(string userName)
{
ValidateUser();
var result = Repository.GetUser(userName);
repository.Dispose();
return result;
}
i dont want asmx web service to return ApplicationUser, i want webmethod to return a geenric object...
any idea how to convert them generic object?
Thanks