public IActionResult ActivateSite([FromBody] ActivateSiteRequestModel requestModel) { try { var validationResult = requestModel.Validate(); if (validationResult.Any()) { return(BadRequest(validationResult)); } return(Ok(MongoConnector.ActivateSite(requestModel))); } catch (Exception ex) { return(BadRequest(ex)); } }