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