Example #1
0
 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;
 }
Example #3
0
        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);
        }
Example #4
0
        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();
        }
Example #5
0
        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);
        }
Example #6
0
 public void Save(FBEntity fbEntity)
 {
     SetVisitUser(fbEntity);
     FBService.SaveAsync(fbEntity);
 }
Example #7
0
 public void GetEntity(QueryExpression qe)
 {
     SetVisitUser(qe);
     FBService.GetFBEntityAsync(qe);
 }