public async Task <IActionResult> GetEmployeeRole(long Employeeid) { string RoleName = string.Empty; try { RoleName = await objUserAccess.GetRoleName(Employeeid, Con); if (RoleName != null) { return(Ok(RoleName)); } else { return(StatusCode(StatusCodes.Status204NoContent)); } } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw new FinstaAppException(ex.ToString()); } }