internal static String Save(DB.SEC_UserRole entry, DataContext dataContext)
        {
            try
            {
                if (dataContext.EntitySecurityContext.GetEntityState(entry) == EntityState.Detached)
                {
                    dataContext.EntitySecurityContext.SEC_UserRole.Add(entry);
                }

                Validation.ValidateEntity(dataContext.EntitySecurityContext, entry);
            }
            catch (Validation.EntityValidationException ex)
            {
                return(dataContext.PackageValidationException());
            }

            return("Success");
        }
 public static void DeleteUserRole(DB.SEC_UserRole sec_userrole, DataContext dataContext)
 {
     dataContext.EntitySecurityContext.SEC_UserRole.Remove(sec_userrole);
     //dataContext.EntityContext.SaveChanges();
 }