Ejemplo n.º 1
0
        public async Task <ActionResult> DeleteConfirmed(int id)
        {
            kyc_riskClass kyc_riskClass = await db.kyc_riskClass.FindAsync(id);

            db.kyc_riskClass.Remove(kyc_riskClass);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Edit([Bind(Include = "Id,Class,Score,Ordinal")] kyc_riskClass kyc_riskClass)
        {
            if (ModelState.IsValid)
            {
                db.Entry(kyc_riskClass).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(kyc_riskClass));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> Create([Bind(Include = "Id,Class,Score,Ordinal")] kyc_riskClass kyc_riskClass)
        {
            if (ModelState.IsValid)
            {
                db.kyc_riskClass.Add(kyc_riskClass);
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }

            return(View(kyc_riskClass));
        }
Ejemplo n.º 4
0
        // GET: riskClass/Delete/5
        public async Task <ActionResult> Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            kyc_riskClass kyc_riskClass = await db.kyc_riskClass.FindAsync(id);

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