/// <summary> /// Function that updates user information /// </summary> /// <param name="company"></param> public void EditUserInfo(Company company) { Company tempCompany = adminWebContext.Companies.Where(c => c.ID == company.ID).SingleOrDefault(); tempCompany.Address = company.Address; tempCompany.BankAccount = company.BankAccount; tempCompany.City = company.City; tempCompany.Email = company.Email; tempCompany.Name = company.Name; tempCompany.Phone = company.Phone; tempCompany.SSN = company.SSN; tempCompany.ZipCode = company.ZipCode; adminWebContext.SubmitChanges(); }
/// <summary> /// Function that saves DB /// </summary> public void SaveDB() { adminWebContext.SubmitChanges(); }