示例#1
0
        public async Task <int> CreateCompanyClaimAsync(CompanyClaims claim)
        {
            var aContext = Context as ACLDbContext;
            await aContext.CompanyClaims.AddAsync(claim);

            await aContext.SaveChangesAsync();

            return(claim.Id);
        }
示例#2
0
        public async Task <int> CreateCompanyClaimAsync(CompanyClaims claim)
        {
            var uStore = Store as SMSUserStore <ApplicationUser>;

            return(await uStore.CreateCompanyClaimAsync(claim));
        }