LoadData() public method

public LoadData ( ) : bool
return bool
Beispiel #1
0
 // GET: LoadData
 public ActionResult Index()
 {
     if (m.LoadData())
     {
         return(Content("data has been loaded"));
     }
     else
     {
         return(Content("data exists already"));
     }
 }
 // GET: Load
 public ActionResult Index()
 {
     m.LoadData();
     return(RedirectToAction("Index", "Home"));
 }