public IActionResult AcceptInvitation(CompanyUserModel model)
 {
     try
     {
         var response = _service.AcceptInvitation(model.CompanyId, model.Email);
         return(Ok(response));
     }
     catch (ValidationException ex)
     {
         return(BadRequest(ex.Message));
     }
 }