diff --git a/Yavsc/Models/Haircut/BrusherProfile.cs b/Yavsc/Models/Haircut/BrusherProfile.cs index 6a09172a..27507527 100644 --- a/Yavsc/Models/Haircut/BrusherProfile.cs +++ b/Yavsc/Models/Haircut/BrusherProfile.cs @@ -137,9 +137,5 @@ namespace Yavsc.Models.Haircut public decimal FlatFeeDiscount { get; set; } - public bool ExistsInDb(object dbContext) - { - return ((ApplicationDbContext)dbContext).BrusherProfile.Any(p=>p.UserId==UserId); - } } } \ No newline at end of file diff --git a/Yavsc/Models/Musical/Profiles/DjSettings.cs b/Yavsc/Models/Musical/Profiles/DjSettings.cs index 544f0a08..c9e7ea22 100644 --- a/Yavsc/Models/Musical/Profiles/DjSettings.cs +++ b/Yavsc/Models/Musical/Profiles/DjSettings.cs @@ -18,9 +18,5 @@ namespace Yavsc.Models.Musical.Profiles get; set; } - public bool ExistsInDb(object dbContext) - { - return ((ApplicationDbContext)dbContext).DjSettings.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 ee2c301b..a7a2352d 100644 --- a/Yavsc/Models/Musical/Profiles/Instrumentation.cs +++ b/Yavsc/Models/Musical/Profiles/Instrumentation.cs @@ -18,10 +18,5 @@ namespace Yavsc.Models.Musical.Profiles [ForeignKeyAttribute("InstrumentId")] public virtual Instrument Tool { get; set; } - - public bool ExistsInDb(object dbContext) - { - return ((ApplicationDbContext)dbContext).Instrumentation.Any(p=>p.UserId==UserId); - } } } \ No newline at end of file diff --git a/Yavsc/Models/Workflow/Profiles/FormationSettings.cs b/Yavsc/Models/Workflow/Profiles/FormationSettings.cs index d37a6ebe..7330c0a9 100644 --- a/Yavsc/Models/Workflow/Profiles/FormationSettings.cs +++ b/Yavsc/Models/Workflow/Profiles/FormationSettings.cs @@ -16,9 +16,5 @@ namespace Yavsc.Models.Workflow.Profiles get; set; } - public bool ExistsInDb(object dbContext) - { - return ((ApplicationDbContext)dbContext).FormationSettings.Any(p=>p.UserId==UserId); - } } } \ No newline at end of file