public ActionResult Create(TaskList tasklist)
        {
            if (ModelState.IsValid)
            {
                tasklist.ID = Guid.NewGuid().ToString();
                _repository.Create(tasklist);
                return RedirectToAction("Index");
            }

            return View(tasklist);
        }
 public void Delete(TaskList tasklist)
 {
     _db.TaskLists.Remove(tasklist);
     Validated.SaveIt(_db);
 }
 public void Update(TaskList tasklist)
 {
     _db.Entry(tasklist).State = EntityState.Modified;
     Validated.SaveIt(_db);
 }
 public void Create(TaskList tasklist)
 {
     _db.TaskLists.Add(tasklist);
     Validated.SaveIt(_db);
 }
 public void Update(TaskList tasklist)
 {
     _db.Entry(tasklist).State = EntityState.Modified;
     Validated.SaveIt(_db);
 }
 public void Delete(TaskList tasklist)
 {
     _db.TaskLists.Remove(tasklist);
     Validated.SaveIt(_db);
 }
 public void Create(TaskList tasklist)
 {
     _db.TaskLists.Add(tasklist);
     Validated.SaveIt(_db);
 }
 public ActionResult Edit(TaskList tasklist)
 {
     if (ModelState.IsValid)
     {
         _repository.Update(tasklist);
         return RedirectToAction("Index");
     }
     return View(tasklist);
 }