public ActionResult <ClientViewModel> GetById(string clientId) { try { return(Ok(_mapper.Map <Client, ClientViewModel>(_clientModel.GetById(clientId)))); } catch (Exception exception) { _logger.LogError($"Exception occurred in GetById() => {exception}"); return(BadRequest("Exception occurred in ClientController.GetById()")); } }