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