public ActionResult EditChild(ApplicationTableField applicationTableField)
        {
            if (ModelState.IsValid)
            {

                repository.AddApplicationTableField(applicationTableField);
                TempData["message"] = string.Format("{0} has been saved", applicationTableField.Description);
                return RedirectToAction("EditChild");
            }
            else
            {
                //there is something wrong with the data values
                return View(applicationTableField);
            }
        }
 public ViewResult EditChild(int id)
 {
     ApplicationTableField atf = new ApplicationTableField();
     atf.ApplicationTableID = id;
     atf.IsDeleted = false;
     ViewBag.FieldTypeList = GetFieldTypeSelectList();
     return View(atf);
 }