public async Task <ActionResult> DeleteConfirmed(int id)
        {
            FaceLighting siteLighting = await db.FaceLightings.FindAsync(id);

            db.FaceLightings.Remove(siteLighting);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "FaceLightingID,Parameter,Score")] FaceLighting siteLighting)
        {
            if (ModelState.IsValid)
            {
                db.Entry(siteLighting).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(siteLighting));
        }
        public async Task <ActionResult> Create([Bind(Include = "FaceLightingID,Parameter,Score")] FaceLighting siteLighting)
        {
            if (ModelState.IsValid)
            {
                db.FaceLightings.Add(siteLighting);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(siteLighting));
        }
        // GET: SiteLightings/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FaceLighting siteLighting = await db.FaceLightings.FindAsync(id);

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