1
I am using Asp.net mvc and in my controller, I have the code below:
[HttpGet]
public JsonResult salvaItem(items item)
{
items oItem = new items()
{
address = item.address,
bairro = item.bairro
};
return ("ok", JsonRequestBehavior.AllowGet);
}
on the Return line, I’m getting the following error:
Predefined type 'System.Valuetuple 2 is not defined or Imported
and also
Cannot implicitly Convert type '(string, System.Web.Mvc.Jsonrequestbehavior Allowget)' to 'System.Web.Mvc.Jsonresult' registration D: Onedrive Visualstudio2017 siteBuscaFree registration Controllers Homecontroller.Cs 25 Active