Esempio n. 1
0
 public async Task<UpdateTermOutput> UpdateGroupGrant(UpdateGroupGrantInput input)
 {
     try
     {
         int success = await _termBll.UpdateGroupGrant(input);
         var result = new UpdateTermOutput()
         {
             Status = 1
         };
         if (success > 0)
             result.Status = 0;
         return result;
     }
     catch (Exception ex)
     {
         ErrorStore.LogExceptionWithoutContext(ex);
     }
     return new UpdateTermOutput();
 }
Esempio n. 2
0
 public async Task<UpdateTermOutput> UpdateTerm(UpdateTermInput input)
 {
     try
     {
         var result = new UpdateTermOutput()
         {
             Status = 1
         };
         int test = await _termBll.UpdateTerm(input);
         if (test > 0)
         {
             await _termBll.SynchTermsToRoles();
             result.Status = 0;
         }
         return result;
     }
     catch (Exception ex)
     {
         ErrorStore.LogExceptionWithoutContext(ex);
     }
     return new UpdateTermOutput();
 }