コード例 #1
0
 public async Task <bool> Insert(SmtpConfigurationsModels Models)
 {
     if (Models.ID == 0)
     {
         await this.biblioteContext.SmtpConfigurationsModels.AddAsync(Models);
     }
     else
     {
         this.biblioteContext.SmtpConfigurationsModels.Update(Models);
     }
     return(await Salvar());
 }
コード例 #2
0
 public async Task <bool> Update(SmtpConfigurationsModels Models)
 {
     return(await Salvar());
 }
コード例 #3
0
 public async Task <bool> Delete(SmtpConfigurationsModels Models)
 {
     biblioteContext.SmtpConfigurationsModels.Remove(Models);
     return(await Salvar());
 }