예제 #1
0
 public ActionResult <string> InvokeById(string id)
 {
     Models.Widgets.IWidget item = widgets.Get(id);
     if (item == null)
     {
         return(NotFound());
     }
     Models.Widgets.IWidgetResult result = item.Invoke(new Models.User());
     return(this.Content(result.DataPackage(), "application/json"));
 }
예제 #2
0
 public ActionResult <string> InvokeById(string id, string param1)
 {
     Console.WriteLine("PARAM = " + param1);
     Models.Widgets.IWidget item = widgets.Get(id);
     item.Intake(param1);
     if (item == null)
     {
         return(NotFound());
     }
     Models.Widgets.IWidgetResult result = item.Invoke(new Models.User());
     return(this.Content(result.DataPackage(), "application/json"));
 }