public ActionResult Edit(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add update logic here
         var model = ProjectActivity.GetById(id);
         TryUpdateModel(model);
         model.SaveOrUpDate();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
 // GET: ProjectActivity/Details/5
 public ActionResult Details(int id)
 {
     return(View(ProjectActivity.GetById(id)));
 }