public void SaveList(ObservableCollection <FBEntity> listOfFBEntity) { //for (int i = 0; i < listOfFBEntity.Count; i++) //{ // fbService.SaveAsync(listOfFBEntity[i]); //} FBService.SaveListAsync(listOfFBEntity); }
public HomeController(ILogger <HomeController> logger, LineService lineService, FBService fBService, GoogleService googleService, LinkedInService linkedService, MSService msService) { _logger = logger; _lineService = lineService; _fBService = fBService; _googleService = googleService; _linkedService = linkedService; _msService = msService; }
public void Save(FBEntity fbEntity) { SetVisitUser(fbEntity); CurrentUserPost user = new CurrentUserPost(); user.EmployeeName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; user.EmployeeID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; user.PostName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName; user.DepartmentName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName; user.CompanyName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName; FBService.SaveAsync(fbEntity, user); }
static void Main(string[] args) { var fbService = new FBService(); var rooms = fbService.LoadRoomsByStatus(LolaRenntServer.Status.End); FBService service = new FBService(); var rooms1 = service.LoadRoomsByStatus(Status.Full); //fbService.FakeCreateUserAsync(49); //var u = fbService.LoadUserById("User-04f346be60be441aa490e1b6a7bb4ce7"); Console.ReadKey(); }
public void SaveList(ObservableCollection <FBEntity> listOfFBEntity) { //for (int i = 0; i < listOfFBEntity.Count; i++) //{ // fbService.SaveAsync(listOfFBEntity[i]); //} CurrentUserPost user = new CurrentUserPost(); user.EmployeeName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName; user.EmployeeID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; user.PostName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName; user.DepartmentName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName; user.CompanyName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName; FBService.SaveListAsync(listOfFBEntity, user); }
public void Save(FBEntity fbEntity) { SetVisitUser(fbEntity); FBService.SaveAsync(fbEntity); }
public void GetEntity(QueryExpression qe) { SetVisitUser(qe); FBService.GetFBEntityAsync(qe); }