public ActionResult DeleteConfirmed(int id)
        {
            ALSMarketing aLSMarketing = db.ALSMarketings.Find(id);

            db.ALSMarketings.Remove(aLSMarketing);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        // GET: ALSMarketing/Create
        public ActionResult Create()
        {
            ViewBag.Marketing_Id = new SelectList(db.ALSEmployees, "Employee_Id", "First_Name");
            ALSMarketing Marketer = new ALSMarketing();

            Marketer.RK  = db.ALSEmployees.Where(P => P.Is_Internal_Employee == false).ToList();
            Marketer.PRK = db.ALSEmployees.Where(P => P.Is_Internal_Employee == true).ToList();
            return(View(Marketer));
        }
 public ActionResult Edit([Bind(Include = "Marketing_Id,Employee,Marketer,Date,Status")] ALSMarketing aLSMarketing)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aLSMarketing).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aLSMarketing));
 }
        // GET: ALSMarketing/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ALSMarketing aLSMarketing = db.ALSMarketings.Find(id);

            if (aLSMarketing == null)
            {
                return(HttpNotFound());
            }
            return(View(aLSMarketing));
        }
        public ActionResult Create([Bind(Include = "Employee,Marketer,Date,Status")] ALSMarketing aLSMarketing, FormCollection frm)
        {
            aLSMarketing.Employee = frm["RK"].ToString();
            aLSMarketing.Marketer = frm["PRK"].ToString();


            if (ModelState.IsValid)
            {
                db.ALSMarketings.Add(aLSMarketing);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(aLSMarketing));
        }