public ActionResult BuildSystem(int employeeID, string RAM, string HDDSize) { Employee employee = db.Employees.Find(employeeID); ComputerSystem computerSystem = new ComputerSystem(RAM, HDDSize); employee.SystemConfigurationDetails = computerSystem.Build(); db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); }