public ActionResult DeleteConfirmed(int id) { GSCUser gscUser = db.GSCUsers.Find(id); gscUser.Decommission(db); return(RedirectToAction("Index")); }
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)); }