Exemple #1
0
        //GET: groups/deleteRole/5 Show the unsubscription confirmation for palyer subcription with subscription id 5
        public ActionResult deleteRole(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            group_roles r_p = db.group_roles.Where(a => a.ID == id).Include(a => a.role).Include(a => a.group).FirstOrDefault();

            if (r_p == null)
            {
                return(HttpNotFound());
            }
            return(View(r_p));
        }
Exemple #2
0
        //GET: groups/deleteRole/5 Show the unsubscription confirmation for palyer subcription with subscription id 5
        public ActionResult detailsRole(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            group_roles r_p = db.group_roles.Where(a => a.ID == id).Include(a => a.role).Include(a => a.group).FirstOrDefault();

            if (r_p == null)
            {
                //TODO : define styled error response through logging
                return(HttpNotFound());
            }

            return(View(r_p));
        }