示例#1
0
        public static async Task <PreAuthDomain> AddDomain(PreAuthDomain domain)
        {
            domain.CreateDate  = DateTime.UtcNow;
            domain.LastUpdated = DateTime.UtcNow;

            return(await DocDBRepo.DB <PreAuthDomain> .CreateItemAsync(domain));
        }
示例#2
0
 public static async Task <dynamic> DeleteDomain(PreAuthDomain domain)
 {
     return(await DocDBRepo.DB <PreAuthDomain> .DeleteItemAsync(domain));
 }