public static bool Delete(PerfisModelo ProfileModelToDelete) { try { using (var ctx = new SuchDBContext()) { DBUserProfiles.DeleteAllFromProfile(ProfileModelToDelete.Id); ctx.Remove(ProfileModelToDelete); ctx.SaveChanges(); } return(true); } catch (Exception ex) { return(false); } }