public static async Task <Sessions> InsertSession(BankCustomer customer) { string sessionID = GetRandomString(); while (sessions.ContainsKey(sessionID)) { sessionID = GetRandomString(); } Sessions session = new Sessions(); session.SessionID = sessionID; session.Email = customer.Email; await DBInterface.sess.InsertOneAsync(session); sessions.Add(sessionID, customer.Id); return(session); }
internal void Update(BankCustomer another) { FirstName = another.FirstName; LastName = another.LastName; Age = another.Age; Gender = another.Gender; MaritalStatus = another.MaritalStatus; HouseName = another.HouseName; HouseNumber = another.HouseNumber; FirstAddress = another.FirstAddress; SecondAddress = another.SecondAddress; City = another.City; State = another.State; Phone = another.Phone; JobTitle = another.JobTitle; OrgName = another.OrgName; OrgCity = another.OrgCity; OrgPhone = another.OrgPhone; Aadhar = another.Aadhar; Pan = another.Pan; }