public ActionResult Create(Target target)
        {
            if (ModelState.IsValid)
            {
                db.Targets.Add(target);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(target);
        }
 public ActionResult Edit(Target target)
 {
     if (ModelState.IsValid)
     {
         db.Entry(target).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(target);
 }