en preparant le badge "activité à configurer!"
This commit is contained in:
parent
a4d8aebb61
commit
cc59db24b0
16 changed files with 78 additions and 20 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using YavscLib;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
|
|
@ -17,5 +18,9 @@ namespace Yavsc.Models.Musical.Profiles
|
|||
get; set;
|
||||
}
|
||||
|
||||
public bool ExistsInDb(object dbContext)
|
||||
{
|
||||
return ((ApplicationDbContext)dbContext).DjSettings.Any(p=>p.UserId==UserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using YavscLib;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
|
|
@ -12,5 +13,10 @@ namespace Yavsc.Models.Musical.Profiles
|
|||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public bool ExistsInDb(object dbContext)
|
||||
{
|
||||
return ((ApplicationDbContext)dbContext).GeneralSettings.Any(p=>p.UserId==UserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using Yavsc.Models.Workflow;
|
||||
using YavscLib;
|
||||
|
||||
|
|
@ -17,6 +18,10 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue