CS0103 C# The name 'Json' does not exist in the current context

前端 未结 3 1752

Well,

I have written JsonResult funtion. But i get the following error:

CS0103 C# The name \'Json\' does not exist in the current context

3条回答
  •  暖寄归人
    2021-01-11 13:57

    I got it !

    I have forgotten to derive my class from Controller class

    public class User: Controller
    {
    
    }
    

提交回复
热议问题