From 3ceb6280b57b4a252e032f85e6a0fa784e5e253a Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 5 Mar 2017 21:57:57 +0100 Subject: [PATCH] cleaning --- Yavsc/Models/Musical/Profiles/GeneralSettings.cs | 6 ------ Yavsc/Models/Musical/Profiles/Instrumentation.cs | 1 - Yavsc/Models/Workflow/Profiles/FormationSettings.cs | 1 - 3 files changed, 8 deletions(-) diff --git a/Yavsc/Models/Musical/Profiles/GeneralSettings.cs b/Yavsc/Models/Musical/Profiles/GeneralSettings.cs index ff331550..11fa903a 100644 --- a/Yavsc/Models/Musical/Profiles/GeneralSettings.cs +++ b/Yavsc/Models/Musical/Profiles/GeneralSettings.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; -using System.Linq; using YavscLib; namespace Yavsc.Models.Musical.Profiles @@ -13,10 +12,5 @@ namespace Yavsc.Models.Musical.Profiles { get; set; } - - public bool ExistsInDb(object dbContext) - { - return ((ApplicationDbContext)dbContext).GeneralSettings.Any(p=>p.UserId==UserId); - } } } \ No newline at end of file diff --git a/Yavsc/Models/Musical/Profiles/Instrumentation.cs b/Yavsc/Models/Musical/Profiles/Instrumentation.cs index a7a2352d..7606276c 100644 --- a/Yavsc/Models/Musical/Profiles/Instrumentation.cs +++ b/Yavsc/Models/Musical/Profiles/Instrumentation.cs @@ -1,5 +1,4 @@ using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; using Yavsc.Models.Workflow; using YavscLib; diff --git a/Yavsc/Models/Workflow/Profiles/FormationSettings.cs b/Yavsc/Models/Workflow/Profiles/FormationSettings.cs index 7330c0a9..8ad4a5d9 100644 --- a/Yavsc/Models/Workflow/Profiles/FormationSettings.cs +++ b/Yavsc/Models/Workflow/Profiles/FormationSettings.cs @@ -3,7 +3,6 @@ using System.ComponentModel.DataAnnotations; namespace Yavsc.Models.Workflow.Profiles { - using System.Linq; using Models.Workflow; using YavscLib; public class FormationSettings : ISpecializationSettings