public ActionResult DeleteConfirmed(int id)
        {
            Personcs personcs = db.Personcs.Find(id);

            db.Personcs.Remove(personcs);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name,Phone,Email")] Personcs personcs)
 {
     if (ModelState.IsValid)
     {
         db.Entry(personcs).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(personcs));
 }
        public ActionResult Create([Bind(Include = "Id,Name,Phone,Email")] Personcs personcs)
        {
            if (ModelState.IsValid)
            {
                db.Personcs.Add(personcs);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(personcs));
        }
        // GET: People/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Personcs personcs = db.Personcs.Find(id);

            if (personcs == null)
            {
                return(HttpNotFound());
            }
            return(View(personcs));
        }