public ActionResult Create(BugCreateVM newBug)
 {
     try
     {
         if (ModelState.IsValid)
         {
             using (BugsProjectEntities db = new BugsProjectEntities())
             {
                 var bug = new Bug()
                 {
                     description = newBug.Description,
                     projectId   = newBug.ProjectId,
                     userId      = newBug.UserId
                 };
                 db.Bug.Add(bug);
                 db.SaveChanges();
             }
             return(Redirect("/"));
         }
         return(View(newBug));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }