en preparant le badge "activité à configurer!"
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user