Esempio n. 1
0
        // GET: EmployeeStatus/Delete/5
        public ActionResult Delete(Nullable <byte> id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Db             db             = new Db(DbServices.ConnectionString);
            EmployeeStatus employeeStatus = EmployeeStatusServices.Get(id.Value, db);

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