Esempio n. 1
0
 public Task <ActionResult <StaffEndorsement> > Save([FromBody] StaffEndorsement staffEndorsement)
 {
     return(TryExecute(MyPolicies.peopleEdit,
                       staffEndorsement.PersonId,
                       () =>
     {
         _endorsementService.Save(staffEndorsement);
         return staffEndorsement;
     }));
 }
Esempio n. 2
0
 public void Save(StaffEndorsement staffEndorsement)
 {
     _entityService.Save(staffEndorsement);
 }