cleaning
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user