public void InsertRoleFunctionality(Rol rol, Functionalities functionality) { SqlDataAccess.ExecuteNonQuery(ConfigurationManager.ConnectionStrings["GrouponConnectionString"].ToString(), "GRUPO_N.InsertRoleFunctionality", SqlDataAccessArgs .CreateWith("@Rol_ID", rol.ID) .And("@Funcionalidad", functionality.ToString()) .Arguments); }
public void InsertRoleFunctionality(Rol rol, Functionalities functionality)//Inserta las funcionalidades a un rol { SqlDataAccess.ExecuteNonQuery(ConfigurationManager.ConnectionStrings["StringConexion"].ToString(), "[SHARPS].InsertRoleFunctionality", SqlDataAccessArgs .CreateWith("@Rol_ID", rol.ID) .And("@Funcionalidad", functionality.ToString()) .Arguments); }
public static bool HasFunctionality(this IConcentratorPrincipal principal, Functionalities functionalitiy) { return(principal.Functionalities.Any(x => x == functionalitiy.ToString())); }