I'm 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);
}
In the return line, I'm getting the following error:
Predefined type 'System.ValueTuple'2' is not defined or imported
and also
Can not implicitly convert type '(string, System.Web.Mvc.JsonRequestBehavior AllowGet)' to 'System.Web.Mvc.JsonResult' D: \ OneDrive \ VisualStudio2017 \ siteBuscaFree \ register \ domain \ Controllers \ HomeController.cs 25 Active