public ActionResult Delete(string id)
        {
            COAAttachment coaAttachmentToDelete = context.Find(id);

            if (coaAttachmentToDelete == null)
            {
                return(HttpNotFound());
            }
            else
            {
                return(View(coaAttachmentToDelete));
            }
        }
        public ActionResult Edit(string id)
        {
            COAAttachment coaAttachment = context.Find(id);

            if (coaAttachment == null)
            {
                return(HttpNotFound());
            }
            else
            {
                return(View(coaAttachment));
            }
        }
        public ActionResult Create(COAAttachment coaAttachment)
        {
            if (!ModelState.IsValid)
            {
                return(View(coaAttachment));
            }
            else
            {
                context.Insert(coaAttachment);
                context.Commit();

                return(RedirectToAction("Index"));
            }
        }
        public ActionResult Edit(COALevel coaAttachment, string id)
        {
            COAAttachment coaAttachmentToEdit = context.Find(id);

            if (coaAttachmentToEdit == null)
            {
                return(HttpNotFound());
            }
            else
            {
                if (!ModelState.IsValid)
                {
                    return(View(coaAttachmentToEdit));
                }

                coaAttachmentToEdit.Attachment = coaAttachmentToEdit.Attachment;

                context.Commit();

                return(RedirectToAction("Index"));
            }
        }
        public ActionResult Create()
        {
            COAAttachment coaAttachment = new COAAttachment();

            return(View(coaAttachment));
        }