Esempio n. 1
0
 public Task <DataStorageResult <StaffMemberDataModel> > AddStaffMemberAsync([ParameterDocumentation("Το μέλος προσωπικού")] StaffMemberDataModel staffMember)
 => AddAsync(x => x.StaffMembers, staffMember);
Esempio n. 2
0
 public Task <DataStorageResult <StaffMemberDataModel> > UpdateStaffMemberAsync([ParameterDocumentation("Το μέλος προσωπικού")] StaffMemberDataModel model)
 => UpdateAsync(x => x.StaffMembers, x => x.Id == model.Id, x =>
 {
     x.FirstName   = model.FirstName;
     x.LastName    = model.LastName;
     x.Email       = model.Email;
     x.PhoneNumber = model.PhoneNumber;
     x.Type        = model.Type;
     x.Color       = model.Color;
 });