public virtual ActionResult Remove(Guid id) { if (!EntityQueryable.Removeable()) { return(new HttpStatusCodeResult(403)); } if (!Metadata.RemoveRoles.All(t => User.IsInRole(t))) { return(new HttpStatusCodeResult(403)); } if (EntityQueryable.Remove(id)) { return(new HttpStatusCodeResult(200)); } else { return(new HttpStatusCodeResult(404)); } }