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()); }
public async Task <bool> Update(SmtpConfigurationsModels Models) { return(await Salvar()); }
public async Task <bool> Delete(SmtpConfigurationsModels Models) { biblioteContext.SmtpConfigurationsModels.Remove(Models); return(await Salvar()); }