Beispiel #1
0
 public void FindRelated(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     Milestone = commandProvider.Find <Milestone>(connection, MilestoneId);
 }
Beispiel #2
0
 public async Task FindRelatedAsync(IDbConnection connection, CommandProvider <int> commandProvider, IUser user = null, IEnumerable <Claim> claims = null)
 {
     Milestone = await commandProvider.FindAsync <Milestone>(connection, MilestoneId);
 }
Beispiel #3
0
 private static async Task <bool> IsDuplicateNameAsync(IDbConnection cn, Milestone ms)
 {
     return(await cn.ExistsWhereAsync <Milestone>(new { ms.OrganizationId, ms.Name }));
 }