public ActionResult DeleteConfirmed(int id)
        {
            FindEmployeeSubCats findEmployeeSubCats = repoFESC.GetBy(i => i.ID == id);

            repoFESC.Remove(findEmployeeSubCats);

            return(RedirectToAction("Index"));
        }
        public ActionResult Edit([Bind(Include = "ID,CompanyName,JobTitle,Email,Description,Logo,MilitaryState,Experience,JobType,PosLevel")] FindEmployeeSubCats findEmployeeSubCats)
        {
            if (ModelState.IsValid)
            {
                repoFESC.Update(findEmployeeSubCats);

                return(RedirectToAction("Index"));
            }
            return(View(findEmployeeSubCats));
        }
        // GET: PublishJob/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FindEmployeeSubCats findEmployeeSubCats = repoFESC.GetBy(i => i.ID == id);

            if (findEmployeeSubCats == null)
            {
                return(HttpNotFound());
            }
            return(View(findEmployeeSubCats));
        }
        public ActionResult Create(FindEmployeeSubCats findEmployeeSubCats, HttpPostedFileBase Logo /*,int Plaque*/)
        {
            if (ModelState.IsValid)
            {
                if (Logo != null)
                {
                    if (!Directory.Exists(Server.MapPath("~/Content/img/logos")))
                    {
                        Directory.CreateDirectory(Server.MapPath("~/Content/img/logos"));
                    }
                    else
                    {
                        Logo.SaveAs(Server.MapPath("~/Content/img/logos" + Logo.FileName));
                    }
                }

                repoFESC.Add(findEmployeeSubCats);

                return(RedirectToAction("Index"));
            }

            return(View(findEmployeeSubCats));
        }