public IActionResult Update([FromBody] TriggerTypeValueDto trg)
 {
     try
     {
         // check if admin
         _triggerService.Update(trg.trgUsrId, trg.trgTrtId, trg.trgValue, (byte)trg.trgActivity);
         return(Ok());
     }
     catch (AppException ex)
     {
         // return error message if there was an exception
         return(BadRequest(new { message = ex.Message }));
     }
 }