Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            GSCUser gscUser = db.GSCUsers.Find(id);

            gscUser.Decommission(db);

            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public IHttpActionResult PutGSCUser(int id, [FromBody] LastDay lastDay)
        {
            GSCUser gscUser = db.GSCUsers.Find(id);

            if (gscUser == null)
            {
                return(NotFound());
            }

            gscUser.Decommission(db);

            return(StatusCode(HttpStatusCode.NoContent));
        }