public async Task <IActionResult> GetIdByName(string name) { try { return(Ok(await _iUserManagementHelper.GetIdByName(name))); } catch (Exception ex) { return(NotFound(ex.InnerException.Message)); } }
public async Task <IActionResult> GetIdByName(string userName) { log.Info("In UserController : GetIdByName(string userName)"); try { //to retrive data based on username return(Ok(await _iUserManagementHelper.GetIdByName(userName))); } catch (Exception e) { log.Error("Exception UserController: GetIdByName(string userName)" + e.Message); return(NotFound(e.Message)); } }