This code is used to pass table (Entity) name to a method in a controller:
public JsonResult IsSubCategoryExist(string Name, int? ID, string ClassName)
{
        //my code..
}
ClassName is the name of the table I need to retrieve from my database. My context definition: 
ApplicationDbContext db = new ApplicationDbContext();
Can someone please help me do it? Thanks in advance.
 
     
    