I have created a C# MVC4 Web api using VS2010. When I try to debug with calling the api (http://localhost/APITest/test?data=12345-45678-890), then the system returned action + parameters ["test?data=12345-45678-890"] as filename and asking to save the file. I can't open or save the file totally. May I know where does it causing the problem?
Thanks in advance.
Try searching around can't really find similar problem I faced.
[HttpGet]
public DocumentModel Test(String data)
{
List<DocumentModel> doc = new List<DocumentModel>();
DocumentModel docObj;
docObj.Name = "Venom";
docObj.Decription = "Fiction story";
docObj.Remarks = "Remarks";
doc.Add(docObj);
return docObj;
}
Supposedly return the DocumentModel as json string.