예제 #1
0
 public object Post(Technology technology)
 {
     var newTechnology = Repository.Store(technology);
     ClioHubManager.NewTechnology(User, newTechnology);
     return newTechnology;
 }
예제 #2
0
 public object Put(Technology technology)
 {
     var editTechnology = Repository.Store(technology);
     ClioHubManager.EditTechnology(User, editTechnology);
     return editTechnology;
 }
예제 #3
0
 public static void NewTechnology(User user, Technology technology)
 {
     var clients = GlobalHost.ConnectionManager.GetHubContext<ClioHub>().Clients;
     clients.All.addTechnology(user, technology);
 }