public ActionResult <ApplicantDTO> Get(int id) { try { var data = _commonrepo.Get(id); return(_repo.GetApplicant(id)); } catch (Exception ex) { _logger.LogInformation($"Failed to get record, Error {ex.Message}"); return(BadRequest(ex.Message)); } }