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