public ActionResult Edit(AssignedTo assignedto)
 {
     if (ModelState.IsValid)
     {
         db.AssignedToes.Attach(assignedto);
         db.ObjectStateManager.ChangeObjectState(assignedto, EntityState.Modified);
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(assignedto);
 }
        public ActionResult Create(AssignedTo assignedto)
        {
            if (ModelState.IsValid)
            {
                db.AssignedToes.AddObject(assignedto);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(assignedto);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the AssignedToes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAssignedToes(AssignedTo assignedTo)
 {
     base.AddObject("AssignedToes", assignedTo);
 }
 /// <summary>
 /// Create a new AssignedTo object.
 /// </summary>
 /// <param name="assignedID">Initial value of the AssignedID property.</param>
 /// <param name="assignedName">Initial value of the AssignedName property.</param>
 /// <param name="assignedEmail">Initial value of the AssignedEmail property.</param>
 public static AssignedTo CreateAssignedTo(global::System.Int32 assignedID, global::System.String assignedName, global::System.String assignedEmail)
 {
     AssignedTo assignedTo = new AssignedTo();
     assignedTo.AssignedID = assignedID;
     assignedTo.AssignedName = assignedName;
     assignedTo.AssignedEmail = assignedEmail;
     return assignedTo;
 }