public void SaveList(ObservableCollection <FBEntity> listOfFBEntity) { //for (int i = 0; i < listOfFBEntity.Count; i++) //{ // fbService.SaveAsync(listOfFBEntity[i]); //} FBService.SaveListAsync(listOfFBEntity); }
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); }