8using Microsoft.EntityFrameworkCore;
43 var updatedAgreementElements =
AgreementElements ??
new List<AgreementElementClientModel>();
49 catch (DbUpdateException e)
54 catch (InvalidOperationException e)
73 catch (DbUpdateException e)
79 catch (InvalidOperationException e)
async void UpdateInfoMessage(InfoMessage msg)
AgreementElementViewService class has methods for creating and updating AgreementElements
AgreementElementViewModel(DataContext context, IMapper mapper, AlertService alertService)
void UpdateAgreementElements(List< AgreementElementClientModel > agreementElements)
readonly AgreementElementService _agreementElementService
async Task GetAgreementElements()
AlertService _alertService
async? Task< AgreementElementClientModel > UpdateAgreementElement(AgreementElementClientModel agreementElementView)
async Task< AgreementElementClientModel?> CreateAgreementElement(AgreementElementClientModel agreementElementView)
List< AgreementElementClientModel >? AgreementElements
AgreementElementService class inserts and updates AgreementElement in the Database
async Task< AgreementElement > AddAgreementElement(AgreementElement agreementElement)
Adds a AgreementElement to the database
async Task< List< AgreementElement > > GetAllAgreementElements()
Read all AgreementElements from database
async Task< AgreementElement > UpdateAgreementElement(AgreementElement agreementElement)
Updates changes on a AgreementElement in the database
static void Error(string msg)