public object Post(Project project) { var newProject = Repository.Store(project); ClioHubManager.NewProject(User, newProject); return newProject; }
public object Put(Project project) { var editProject = Repository.Store(project); ClioHubManager.EditProject(User, editProject); return editProject; }
public static void NewProject(User user, Project project) { var clients = GlobalHost.ConnectionManager.GetHubContext<ClioHub>().Clients; clients.All.addProject(user, project); }