public IActionResult Activate(Guid id)
 {
     try
     {
         var user   = Request.GetCurrentUser();
         var result = _lockService.ActivateLock(user.Id, id);
         return(Ok(new ValidResponse {
             Message = $"Action has been performed on device with id: {id},  Operation result: {Enum.GetName(typeof(LockState), result)}"
         }));
     }
     catch (Exception e)
     {
         _logger.LogError($"An error occured activating lock with given exception: {e}");
         return(e.Handle());
     }
 }