public async Task <MainRolePermissionResponse> GetAllRolesPermission(RecordFilterRequest recordFilterRequest) { try { var isExist = _rolePermissionRepository.GetAllRolesPermission(recordFilterRequest); if (isExist.Result != null) { //_response.roleResponseData = isExist.Result.roleResponseData; //_response.roleResponse = roleResponse; //_response.Message = Constants.Role_Exist; _response.Status = true; } else { _response.Message = Constants.Role_Not_Exist; _response.Status = false; } ; } catch (Exception ex) { var msg = ex.Message; _response.Status = false; _response.Message = Constants.DEFAULT_ERROR_MSG; } return(_response); }