public ActionResult Create(MorphBLL collection)
 {
     try
     {
         using (ContextBLL ctx = new ContextBLL())
         {
             ctx.CreateMorph(collection.MorphName, collection.Description, collection.Het);
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(View("Error", ex));
     }
 }
 // GET: Morph/Delete/5
 public ActionResult Delete(int id)
 {
     using (ContextBLL ctx = new ContextBLL())
     {
         MorphBLL m = ctx.FindMorphByID(id);
         if (m == null)
         {
             return(View("ItemNotFound"));
         }
         else
         {
             return(View(m));
         }
     }
 }
 public ActionResult Delete(int id, MorphBLL collection)
 {
     try
     {
         using (ContextBLL ctx = new ContextBLL())
         {
             ctx.DeleteMorph(id);
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(View("Error", ex));
     }
 }
        public ActionResult Edit(int id, MorphBLL collection)
        {
            try
            {
                using (ContextBLL ctx = new ContextBLL())
                {
                    ctx.JustUpdateMorph(id, collection.MorphName, collection.Description, collection.Het);

                    return(RedirectToAction("Index"));
                }
            }
            catch (Exception ex)
            {
                return(View("Error", ex));
            }
        }
 // GET: Morph/Edit/5
 public ActionResult Edit(int id)
 {
     try
     {
         using (ContextBLL ctx = new ContextBLL())
         {
             MorphBLL m = ctx.FindMorphByID(id);
             if (m == null)
             {
                 return(View("ItemNotFound"));
             }
             else
             {
                 return(View(m));
             }
         }
     }
     catch (Exception ex)
     {
         return(View("Error", ex));
     }
 }