Copy one form Data to another form Entity Framework
<p>In my mvc4 web application I have to copy all the data of one form which have been saved previously to another newly created form. But when I copy the data using following code, all the data moves from one form to another and the data from previous form is deleted. Please specify why this is happening and how to copy that data.</p>

<pre><code>  public FormEntity CopyFormData(CopyForm copyForm)
    {
        using (SIPSEntities db = new SIPSEntities())
        {

            if (db.QmsEvaluationForms.Where(x =&gt; x.IsActive == true).Any(x =&gt; x.FormName == copyForm.FormName))
            {
                throw new Exception("Form Name Already Exists!");
            }
            else
            {
                var copyData = (from log in db.QmsEvaluationForms
                                where log.EvaluationFormId == copyForm.CopyFrom &amp;&amp; log.IsActive == true
                                select new
                                {
                                    ZeroOnFatal = log.MakeScoreZeroOnFatal,
                                    FormControls = (from log1 in log.QmsEvaluationFormControls where log1.IsActive == true select log1).ToList(),
                                    FormParameters = (from log1 in log.QmsEvaluationParameters where log1.IsActive == true select log1).ToList()
                                }).FirstOrDefault();

                //Insert new form

                QmsEvaluationForm newForm = new QmsEvaluationForm();
                newForm.FormName = copyForm.FormName;
                newForm.MakeScoreZeroOnFatal = copyData.ZeroOnFatal;
                newForm.IsActive = true;
                newForm.CreatedOn = DateTime.Now;
                newForm.SubprocessId = copyForm.SubProcessId;

                //(copy data from child table) this data is deleted from previous form and copied to another form
                newForm.QmsEvaluationFormControls = copyData.FormControls;

                //(copy data from child table) this data is deleted from previous form and copied to another form
                newForm.QmsEvaluationParameters = copyData.FormParameters;
                db.QmsEvaluationForms.Add(newForm);
                db.SaveChanges();
                return new FormEntity { FormId = newForm.EvaluationFormId, FormName = newForm.FormName, MakeZero = newForm.MakeScoreZeroOnFatal };


            }


        }
    }
</code></pre>